Skip to content

Commit

Permalink
The ExpandObjects threaded executor now works even if the epw attribu…
Browse files Browse the repository at this point in the history
…te is not set on an IDF model (#415)

* enables use of expandobjects even if epw is not set

* pint~=0.19

* pint==0.19
  • Loading branch information
Samuel Letellier-Duchesne committed Nov 2, 2022
1 parent 3897786 commit 26a5114
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion archetypal/eplus_interface/expand_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ def run(self):

# Move files into place
tmp = self.tmp
self.epw = self.idf.epw.copy(tmp / "in.epw").expand()
if self.idf.epw is not None:
self.epw = self.idf.epw.copy(tmp / "in.epw").expand()
self.idfname = Path(self.idf.savecopy(tmp / "in.idf")).expand()
self.idd = self.idf.iddname.copy(tmp / "Energy+.idd").expand()
expand_object_exe = shutil.which("ExpandObjects", path=self.eplus_home)
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ sklearn~=0.0
CoolProp~=6.4.1
energy-pandas~=0.3.3
validator_collection~=1.5.0
pint==0.19

0 comments on commit 26a5114

Please sign in to comment.