NatLabRockies / NatLabRockies/OpenStudio

Cannot import IDF using "For: Foo" syntax in schedules

Open
#4,521 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

component - IDF Translation severity - Minor Bug
Dominant language
C++
Stars
646
Forks
237
Avg merge
3d 11h
Merged PRs (30d)
10

Description

Issue overview

The OpenStudio Application is stricter than EnergyPlus when reverse translating schedules. I would like OpenStudio to accommodate IDFs that are allowed by EnergyPlus itself.

Current Behavior

If you try to import an IDF in the OpenStudio Application that has, e.g., "For: AllDays" in a Schedule:Week:Compact object, the OpenStudio Application throws an error.

Expected Behavior

The OpenStudio Application should successfully import the IDF.

Steps to Reproduce

  1. Try to import US+SF+CZ5A+hp+slab+IECC_2018.idf.txt into the OpenStudio Application.
  2. Note the error about Schedule:Week:Compact field 1.
  3. Remove all "For: " from the IDF and try importing again. (Now it works.)

Possible Solution

Details

Environment

Some additional details about your environment for this issue (if relevant):

  • Windows 10
  • OpenStudio Application v1.2.0
Context

I'm trying to import a residential prototype building model from the DOE Energy Codes Program.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by importing the attached US+SF+CZ5A+hp+slab+IECC_2018.idf.txt and reproduce the Schedule:Week:Compact field 1 error involving "For: AllDays". Trace the reverse-translation path for that schedule syntax; done means the OpenStudio Application imports the IDF successfully without requiring the "For: " text to be removed.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.