First time here? Check out the Help page!

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

Eppy for EnergyPlus 'The objective is not pickable'

asked 9 years ago

nancynanxiaodan's avatar

updated 8 years ago

I would like to use Eppy to change some attributes in IDF files. And when I tried I got some errors.

My code simply follows the tutorial from Eppy tutorial web page.

schedules=idf1.idfobjects['SCHEDULE:COMPACT']
occschedules=schedules[22]
print occschedules

The error I am getting here is:

raise RepresenterError("cannot represent an object: %s" % data)
yaml.representer.RepresenterError: cannot represent an object: <eppy.bunch_subclass.CheckRange object at 0x0D13B850>

And the schedule in IDF file I would like to print is showing below:

Schedule:Compact,         
Office_Reception_Occ,     !- Name
Fraction,                 !- Schedule Type Limits Name
Through: 31 Dec,          !- Field 1
For: Weekdays SummerDesignDay,    !- Field 2
Until: 07:00,             !- Field 3
0,                        !- Field 4
Until: 08:00,             !- Field 5
0.25,                     !- Field 6
Until: 09:00,             !- Field 7
0.5,                      !- Field 8
Until: 12:00,             !- Field 9
1,                        !- Field 10
Until: 14:00,             !- Field 11
0.75,                     !- Field 12
Until: 17:00,             !- Field 13
1,                        !- Field 14
Until: 18:00,             !- Field 15
0.5,                      !- Field 16
Until: 19:00,             !- Field 17
0.25,                     !- Field 18
Until: 24:00,             !- Field 19
0,                        !- Field 20
For: Weekends,            !- Field 21
Until: 24:00,             !- Field 22
0,                        !- Field 23
For: Holidays,            !- Field 24
Until: 24:00,             !- Field 25
0,                        !- Field 26
For: WinterDesignDay AllOtherDays,    !- Field 27
Until: 24:00,             !- Field 28
0;                        !- Field 29
Preview: (hide)

Comments

Can you share your file or at least the Schedules section?

Julien Marrec's avatar Julien Marrec  ( 9 years ago )

Does changing "Through: 31 Dec," to "Through: 12/31" help?

Chandan Sharma's avatar Chandan Sharma  ( 9 years ago )

@Julien Marrec the schedule file and the code were attached.

The code for print schdule is shown below: schedules=idf1.idfobjects['SCHEDULE:COMPACT'] occschedules=schedules[22] print occschedules

nancynanxiaodan's avatar nancynanxiaodan  ( 9 years ago )

@Chandan Sharma However, I could not, this schedule in IDF was generated from DesignBuilder, and I would like to use EPPY to change the attributes.

nancynanxiaodan's avatar nancynanxiaodan  ( 9 years ago )

I meant share your entire IDF or IDF section with schedules.

Julien Marrec's avatar Julien Marrec  ( 9 years ago )

1 Answer

Sort by » oldest newest most voted
5

answered 9 years ago

santoshphilip's avatar

updated 8 years ago

This is a rather obscure bug.

  • It happens only when yaml is installed.
  • Nancy is using python(x,y) as her python environment that installs yaml by default
  • The bug has been fixed and is now in thedevelop branch of eppy.
  • Later this bug fix will be merged into the master branch
  • Any version of eppy greater than 0.5 will have this bug fix
Preview: (hide)
link

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

1 follower

Stats

Asked: 9 years ago

Seen: 409 times

Last updated: Mar 08 '17