Fix bug with `self.epw` parameter
@@ -1002,8 +1002,9 @@ class IDF(object):
self.saveas('in.idf')
# if `idd` is not passed explicitly, use the IDF.iddname
idd = kwargs.pop('idd', self.iddname)
+ epw = kwargs.pop('weather', self.epw)
# run EnergyPlus
- run(self, self.epw, idd=idd, **kwargs)
+ run(self, weather=epw, idd=idd, **kwargs)
# remove in.idf
os.remove('in.idf')
