Eppy for EnergyPlus 'The objective is not pickable'
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
Can you share your file or at least the Schedules section?
Does changing "Through: 31 Dec," to "Through: 12/31" help?
@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
@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.
I meant share your entire IDF or IDF section with schedules.