Skip to content

Commit

Permalink
allow user to specify name of modelica.mos file to load in System Par…
Browse files Browse the repository at this point in the history
…ameter generator (#599)
  • Loading branch information
nllong authored Nov 17, 2023
1 parent b503b43 commit 246fcc4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -712,13 +712,15 @@ def csv_to_sys_param(self,
:kwargs (optional):
- relative_path: Path, set the paths (time series files, weather file, etc) relate to `relative_path`
- skip_weather_download: Boolean, set to True to not download the weather file, defaults to False
- modelica_load_filename: str, name (only) of the file to load as the modelica load file, defaults to "modelica.mos"
:return None, file created and saved to user-specified location
"""
self.sys_param_filename = sys_param_filename
self.rel_path = kwargs.get('relative_path', None)
skip_weather_download = kwargs.get('skip_weather_download', False)
modelica_load_filename = kwargs.get('modelica_load_filename', 'modelica.mos')

if model_type == 'time_series':
# TODO: delineate between time_series and time_series_massflow_rate
Expand Down Expand Up @@ -754,7 +756,7 @@ def csv_to_sys_param(self,
if str(item).endswith('_export_time_series_modelica'):
measure_list.append(Path(item) / "building_loads.csv") # used for mfrt
elif str(item).endswith('_export_modelica_loads'):
measure_list.append(Path(item) / "modelica.mos") # space heating/cooling & water heating
measure_list.append(Path(item) / modelica_load_filename) # space heating/cooling & water heating
measure_list.append(Path(item) / "building_loads.csv") # used for max electricity load

# Get each building feature id from the SDK FeatureFile
Expand Down

0 comments on commit 246fcc4

Please sign in to comment.