Skip to content

Commit

Permalink
handle None case for epw file in ExpandObjectsThread (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelduchesne authored Feb 3, 2025
1 parent e7314ce commit 1f3b1b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archetypal/eplus_interface/expand_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def run(self):
"""Wrapper around the ExpandObject command line interface."""

# Move files into place
self.epw = self.idf.epw.copy(self.run_dir / "in.epw").expand()
self.epw = self.idf.epw.copy(self.run_dir / "in.epw").expand() if self.idf.epw else None
self.idfname = Path(self.idf.savecopy(self.run_dir / "in.idf")).expand()
self.idd = self.idf.iddname.copy(self.run_dir / "Energy+.idd").expand()

Expand Down

0 comments on commit 1f3b1b0

Please sign in to comment.