Skip to content

Commit

Permalink
fix(eplus):design day run
Browse files Browse the repository at this point in the history
  • Loading branch information
TammieYu committed Oct 27, 2023
1 parent 08bc9b7 commit b13b3c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frads/eplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,15 +379,15 @@ def run(

if self.epw is not None:
opt.extend(["-w", self.epw])
elif design_day:
if design_day:
if self.model.sizing_period_design_day is not None:
opt.append("-D")
else:
raise ValueError(
"Design day simulation requested, "
"but no design day found in EnergyPlus model."
)
else:
if self.epw is None and not design_day:
raise ValueError(
"Specify weather file in EnergyPlusSetup or "
"run with design_day = True for design-day-only simulation."
Expand Down

0 comments on commit b13b3c3

Please sign in to comment.