Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
8

EnergyPlus Eppy IDD File

asked 2015-09-28 03:13:02 -0600

antifx's avatar

updated 2015-09-28 10:30:30 -0600

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!

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
5

answered 2015-09-28 10:25:25 -0600

updated 2015-09-28 10:26:13 -0600

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.

edit flag offensive delete link more
5

answered 2015-09-28 13:42:28 -0600

santoshphilip's avatar

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.

edit flag offensive delete link more
1

answered 2015-09-28 10:19:12 -0600

nancynanxiaodan's avatar

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.

edit flag offensive delete link more

Comments

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

JasonGlazer's avatar JasonGlazer  ( 2015-09-28 10:37:01 -0600 )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 -0600 )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 -0600 )edit

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

nancynanxiaodan's avatar nancynanxiaodan  ( 2015-09-28 12:21:27 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

2 followers

Stats

Asked: 2015-09-28 03:13:02 -0600

Seen: 2,286 times

Last updated: Sep 28 '15