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

Revision history [back]

click to hide/show revision 1
initial version

Eppy for EnergyPlus 'The objective is not pickable'

Hi all, I would like to you Eppy to change some attributes in IDF files. And when I try I got some errors.

my codes are simply follow 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

Eppy for EnergyPlus 'The objective is not pickable'

Hi all, I would like to you Eppy to change some attributes in IDF files. And when I try I got some errors.

my codes are simply follow 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

Mancy Thanks!!

Eppy for EnergyPlus 'The objective is not pickable'

Hi all, I would like to you Eppy to change some attributes in IDF files. And when I try I got some errors.

my codes are simply follow 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

Mancy Thanks!!

Eppy for EnergyPlus 'The objective is not pickable'

Hi all, I would like to you use Eppy to change some attributes in IDF files. And when I try tried I got some errors.

my codes are My code simply follow 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: is:

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

<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

Mancy Thanks!!