Skip to content

Commit

Permalink
More prep for building sizer 4 (#370)
Browse files Browse the repository at this point in the history
* split building sizer setups into two setups

* prepare two system setups for building sizer

* more households for building sizer

* fix mypy and pytest

* code qualy

* code qualy

* code qualy+

* black on system setups

* put gas heater controller in gas heater component

* some fixing

* some fixing

* some fixing

* some fixing

* some fixing

* some fixing

* some fixing

* some fixing

* make one default config for water heating for generic heat source

* fixing

* fixing

* fixing

* more changes on generic heat source

* kpis and opex/capex costs in generic_heat_source

* code qualy

* some fixing

* some fixing

* make generic oil heater

* some more fixing

* add generic oil heater

* add building sizer system setup oil

* add building sizer system setup oil

* fix oil demand kpis

* update physicsconfig with other energy carrier values for condensing boiler component

* some fixes

* some fixes

* generic_boier

* generic_boier

* some fixing

* some fixing

* more dev on boiler

* replace gas heater and oil heater by generic boiler

* replacing generic gas heater step by setp by boiler

* replace gas heater and oil heater by generic boiler

* replace gas heater and oil heater by generic boiler

* some fixing

* simplify district heating

* fix district heating

* fixing reading config path

* code qualy
  • Loading branch information
k-rieck authored Nov 13, 2024
1 parent 329c88c commit b5ed7b3
Show file tree
Hide file tree
Showing 6 changed files with 169 additions and 218 deletions.
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
Loading

0 comments on commit b5ed7b3

Please sign in to comment.