GMLC-1-4-2 / battery_interface

Implemenation of Device Models and their Battery Equivalent Interface
MIT License
5 stars 0 forks source link

added energy market service functionality #83

Closed can7huang closed 5 years ago

can7huang commented 5 years ago

added energy market service functionality. Run energy_market_service.py

hlngo commented 5 years ago

@can7huang For integration test, we need to reference all files by using absolute paths instead of relative paths. Can you make the following changes: Under your init, add: self.base_path = dirname(abspath(file)) For ALL csv files you reference to, change:

price = np.genfromtxt('CAISOApr2016Hourly.csv', delimiter = ',' ) to price = np.genfromtxt(join(self.base_path, 'CAISOApr2016Hourly.csv'), delimiter = ',' )

Thanks.

hlngo commented 5 years ago

@can7huang I will do it since it's quite simple