Skip to content

Commit

Permalink
Changed default config for time_set from [0] to None
Browse files Browse the repository at this point in the history
  • Loading branch information
NishantGiridhar committed Nov 19, 2024
1 parent 65946a6 commit 5ceb39a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions idaes/core/base/flowsheet_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class FlowsheetBlockData(ProcessBlockData):
CONFIG.declare(
"time_set",
ConfigValue(
default=[0],
default=None,
domain=ListOf(float),
description="Set of points for initializing time domain",
doc="""Set of points for initializing time domain. This should be a
Expand Down Expand Up @@ -373,10 +373,13 @@ def _create_time_domain():
else:
# If no parent flowsheet, set up time domain
if fs is None:
# Set default time_set to [0] if not provided
if self.config.time_set is None:
self.config.time_set = [0]
# Create time domain
_create_time_domain()
# Creates a new time domain for a sub-flowsheet with user provided time domain
elif self.config.time_set not in [None, [0]]:
elif self.config.time_set is not None:
# Create time domain from config.time_set
_create_time_domain()
else:
Expand Down

0 comments on commit 5ceb39a

Please sign in to comment.