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 2015-10-12 12:31:41 -0600

nancynanxiaodan's avatar

updated 2017-03-08 02:17:38 -0600

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
edit retag flag offensive close merge delete

Comments

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

Julien Marrec's avatar Julien Marrec  ( 2015-10-13 08:51:17 -0600 )edit

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

Chandan Sharma's avatar Chandan Sharma  ( 2015-10-13 11:22:03 -0600 )edit

@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  ( 2015-10-13 13:04:06 -0600 )edit

@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  ( 2015-10-13 13:23:36 -0600 )edit

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

Julien Marrec's avatar Julien Marrec  ( 2015-10-13 15:44:50 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
5

answered 2015-10-14 21:05:33 -0600

santoshphilip's avatar

updated 2017-03-08 01:38:15 -0600

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
edit flag offensive delete link more

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: 2015-10-12 12:31:41 -0600

Seen: 397 times

Last updated: Mar 08 '17