Skip to content

Commit

Permalink
Merge branch 'more_prep_for_building_sizer_4' of https://github.com/F…
Browse files Browse the repository at this point in the history
…ZJ-IEK3-VSA/HiSim into more_prep_for_building_sizer_4
  • Loading branch information
k-rieck committed Nov 13, 2024
2 parents 48e1e56 + 78827bd commit 946c497
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def read_in_configs(pathname: str) -> Optional[ModularHouseholdConfig]:
# try to read modular household config from path
household_config: Optional[ModularHouseholdConfig]
try:
with open(pathname, encoding="utf8") as config_file:
# use strip() in order to remove \r or \n signs from path
with open(pathname.strip(), encoding="utf8") as config_file:
household_config_dict = json.load(config_file) # type: ignore
household_config = ModularHouseholdConfig.from_dict(household_config_dict)

Expand Down

0 comments on commit 946c497

Please sign in to comment.