8

EnergyPlus Eppy IDD File

Hey, I am trying to use Eppy for the first time and I have a question (from the Tutorial) regarding :

iddfile = "../eppy/resources/iddfiles/Energy+V7_2_0.idd"
fname1 = "../eppy/resources/idffiles/V_7_2/smallfile.idf"

As I understand, the idd file is an input data dictionary file which contains a list of all possible EnergyPlus objects and a specification of the data each object requires. So the .idd file is the same for all projectes, right? So shound i create a new file (in the Tutorial) iddfile, or should i set the path to " C:\EnergyPlusV8-1-0\Energy+.idd"?

I tried to copy the file C:\EnergyPlusV8-1-0\Energy+.idd in the working directory.

Then I set:

fname1 = "D:\Tools\EnergyPlus \Energy+.idd"

error: IDDAlreadySetError: IDD file is set to: ../eppy/resources/iddfiles/Energy+V7_2_0.idd

Thank you for your help!

antifx's avatar
495
antifx
asked 2015-09-28 03:13:02 -0500
MatthewSteen's avatar
10.1k
MatthewSteen
updated 2015-09-28 10:30:30 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

3 Answers

5

Yes, the IDD can be the same for all projects and EPPy just needs a path to the version corresponding to the IDF(s) you're working with, which can be the default EP directory.

The error you're seeing is normal and a result of the way the current code is written (ref: Issue 49). To fix it, try starting a new session. Often I'm able to "debug" strange errors in IPython by simply starting fresh.

MatthewSteen's avatar
10.1k
MatthewSteen
answered 2015-09-28 10:25:25 -0500, updated 2015-09-28 10:26:13 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
5

as of version 5.0 the following is true:

  • eppy can have only one IDD file at a time.
  • if you try to set a second IDD file, it will throw an exception.

For the near future you eppy will work with only one IDD file. What this means is that:

  • you cannot open idf files of different versions simultaneously.
  • Once you have set an IDD file, you cannot change it

In theory this is should not be a problem, but in practice it is a real pain. The next version of eppy will have updates that will make it easier to use. Some of these potential updates are described in issue 41

eppy will work with any IDD version. It should even work with future IDD versions.

santoshphilip's avatar
961
santoshphilip
answered 2015-09-28 13:42:28 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
1

The error message you are having "IDDAlreadySetError: IDD file is set to: ../eppy/resources/iddfiles/Energy+V7_2_0.idd" means that the iddfile has already been set to Energy+V7_2_0.idd. If you restart python again, then import eppy and try set iddfile to new directory C:\EnergyPlusV8-1-0\Energy+.idd. I personally did not try using v8.1 of .idd file. I am not sure whether it works or not. Coz in resource file, it only contains up to date version of v8.0 if I remember correct.

nancynanxiaodan's avatar
387
nancynanxiaodan
answered 2015-09-28 10:19:12 -0500
edit flag offensive 0 remove flag delete link

Comments

I have been using eppy with EnergyPlus 8.3 without a problem.

JasonGlazer's avatar JasonGlazer (2015-09-28 10:37:01 -0500) edit

@JasonGlazer, Thanks for your update! I just posted another question about eppy, may I ask you to have a look? I really dont know where to ask the question about Eppy, so I asked here. Thanks

nancynanxiaodan's avatar nancynanxiaodan (2015-09-28 10:41:02 -0500) edit

@nancynanxiaodan sorry for duplicating your answer, we must have been working on them at the same time.

MatthewSteen's avatar MatthewSteen (2015-09-28 11:03:47 -0500) edit

@MatthewSteen I noticed that :) no worries at all. :)

nancynanxiaodan's avatar nancynanxiaodan (2015-09-28 12:21:27 -0500) edit
add a comment see more comments