Skip to content

Commit

Permalink
another place to handle a lack of defaults from sys-params
Browse files Browse the repository at this point in the history
  • Loading branch information
vtnate committed Oct 21, 2024
1 parent c081ab0 commit c6b482b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,14 @@ def post_process(self, scaffold, keep_original_models=False):
use_moisture_balance = self.system_parameters.get_param(
"buildings.load_model_parameters.rc.use_moisture_balance"
)
if use_moisture_balance is None:
use_moisture_balance = "false"

# TODO: Determine why we are looking for use_moisture_balance & nPorts in the sys-param file.
# Is this just an allowance for future flexibility?
n_ports = self.system_parameters.get_param("buildings.load_model_parameters.rc.nPorts")
if n_ports is None:
n_ports = 1

# create a new parameter for fraction latent person
mofile.add_parameter(
Expand Down

0 comments on commit c6b482b

Please sign in to comment.