Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDF(idf, epw) not working w/ error in idfreader.py #418

Open
tobiasquene opened this issue Apr 22, 2023 · 2 comments
Open

IDF(idf, epw) not working w/ error in idfreader.py #418

tobiasquene opened this issue Apr 22, 2023 · 2 comments

Comments

@tobiasquene
Copy link

Hi,

I'm having trouble running .idf files from my eppy scripts, and can't seem to figure out where the error is.
I have two .idf files: One is an export from DesignBuilder (V 8.9.0, refered to as the 'template' idf), the other .idf is an edited .idf based on the template.
I also have two .epw files: The first is the E+ Chicago O'Hare file, the second is a self-converted file based on Dutch extreme climate scenarios.

The weather files are defined as followed:

ref_epw = r"C:\Users\tobia\OneDrive - TU Eindhoven\Documents\02_Technische Universiteit Eindhoven\02_ABP 2022 - 2023\Afstuderen\Model\eppy\eppy_epw\USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw"
nen5060 = r"C:\Users\tobia\OneDrive - TU Eindhoven\Documents\02_Technische Universiteit Eindhoven\02_ABP 2022 - 2023\Afstuderen\Model\eppy\eppy_epw\NEN5060_ref.epw"

The .idf files are defined through a series of dictionaries (I plan on varying 4 scenarios with each 3 values/constructions, so all files are separated in sub-folders):

The template (i.e. uneditted) file:
isoH = iso_dict_total['isoH']
test_temp = isoH['cellulose']

and the edited file:

folder_test_out = os.listdir(panel_dir)
folder_test_out[0]
test_out = panel_dir + '\\' + folder_test_out[0]
test_out = eppy.modeleditor.IDF(test_out)
test_out.printidf()

In order to use idf.run() I do the following step:

testrun1 = IDF(test_temp, ref_epw)

which returns the following error, added in the picture. Do you have any suggestions on how to mitigate this error? Or is it as simple as importing datetime as dt in idfreader.py?
I have confirmed that both the .idf files as well as the .epw work without a problem in/through EPlaunch, so this is more a case of scalability than not being able to get results.

error_run()

@santoshphilip
Copy link
Owner

I am just getting to this. Will review and respond

@santoshphilip
Copy link
Owner

it is failing on

testrun1 = IDF(test_temp, ref_epw)

At this point it is just reading the file. My suspicions are:

  1. something wrong with the test_temp
  2. something wrong with the IDD file
  3. mismatch between IDD and test_temp (version numbers?)

If you don't have a problem sharing test_temp. Can you do so?
I'll test and respond

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants