Skip to content

Commit

Permalink
Fix - Fixed path to modules and inverter database files
Browse files Browse the repository at this point in the history
  • Loading branch information
davidusb-geek committed May 13, 2024
1 parent bdea619 commit 789755c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/emhass/forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,9 @@ def get_power_from_weather(self, df_weather: pd.DataFrame,
# Setting the main parameters of the PV plant
location = Location(latitude=self.lat, longitude=self.lon)
temp_params = TEMPERATURE_MODEL_PARAMETERS['sapm']['close_mount_glass_glass']
cec_modules = bz2.BZ2File(self.emhass_conf['root_path'] / 'src/emhass/data/cec_modules.pbz2', "rb")
cec_modules = bz2.BZ2File(pathlib.Path(__file__).parent / 'data/cec_modules.pbz2', "rb")
cec_modules = cPickle.load(cec_modules)
cec_inverters = bz2.BZ2File(self.emhass_conf['root_path'] / 'src/emhass/data/cec_inverters.pbz2', "rb")
cec_inverters = bz2.BZ2File(pathlib.Path(__file__).parent / 'data/cec_inverters.pbz2', "rb")
cec_inverters = cPickle.load(cec_inverters)
if type(self.plant_conf['module_model']) == list:
P_PV_forecast = pd.Series(0, index=df_weather.index)
Expand Down

0 comments on commit 789755c

Please sign in to comment.