Skip to content

[BUG]: On/Off Schedule Type Limits Name not supported by opyplus? #58

@AlejandroCampoy

Description

@AlejandroCampoy
  • Opyplus Package Version: 1.3.0
  • Operating System: Ubuntu 18.04 LTS
  • Python Version: 3.9.10

Describe the bug
I am trying to load a building IDF file with opyplus, but apparently it does not have support for the On/Off Schedule Type Limits Name.

To Reproduce
Steps to reproduce the behavior:

  1. Download warehouse IDF from ASHRAE9012016_Warehouse_Denver.zip
  2. Extract IDF file
  3. Use opyplus to load from IDF:
from opyplus import Epm
import os

building = Epm.from_idf(
            'ASHRAE9012016_Warehouse_Denver.idf',
            check_length=False)

Expected behavior
building should be an Epm object, but the next Traceback happens:

opyplus.exceptions.FieldValidationError: No object found with any of given references : (('ScheduleTypeLimitsNames', 'on/off'),). Table: Schedule:Compact, index: 1, ref: schedule_type_limits_name, value: on/off.

With Energyplus 9.5.0 this type (On/Off) is a valid type. The lines in the IDF that cause the error are as follows:

Schedule:Compact,
    ALWAYS_OFF,              !- Name
    On/Off,                  !- Schedule Type Limits Name
    Through: 12/31,          !- Field 1
    For: AllDays,            !- Field 2
    Until: 24:00,0;          !- Field 3

  Schedule:Compact,
    ALWAYS_ON,               !- Name
    On/Off,                  !- Schedule Type Limits Name
    Through: 12/31,          !- Field 1
    For: AllDays,            !- Field 2
    Until: 24:00,1;          !- Field 3

If On/Off is changed to Any Number value, for example, The Epm.from_idf() function is executed successfully.

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions