NatLabRockies / NatLabRockies/OpenStudio
OpenStudio doesn't preserve order of EMS programs
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 646
- Forks
- 237
- Avg merge
- 3d 11h
- Merged PRs (30d)
- 10
Description
If you have two EMS programs with the same calling point, with the second program dependent on the first program, you would like the IDF to preserve the order of the programs based on the order the objects were added to the model so that EnergyPlus will process the programs in the correct order. But it appears that OpenStudio automatically FTs the programs based on alphabetical order, which can result in the programs being processed by EnergyPlus out of order. This can result in errors or unexpected results.
As a workaround, the user can name the programs in such a way that they end up ordered correctly, but that is not a great solution.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are named. Reproduce the case with two EMS programs sharing a calling point, where the second depends on the first, then trace the IDF export path and its ordering behavior. Done means object insertion order is preserved so EnergyPlus processes the programs in dependency order without relying on their names.
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
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100