Skip to content

[os-4.0-dev] Add epmodel m_workflowJSON + point documentation to Read The Docs - #5712

Merged
jmarrec merged 5 commits into
os-4.0-devfrom
os-4.0-workflowJSON
Nov 27, 2026
Merged

jmarrec merged 5 commits into
os-4.0-devfrom
os-4.0-workflowJSON

Conversation

@jmarrec

@jmarrec jmarrec commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

Pull request overview

Pull Request Author

  • Model API Changes / Additions
  • Any new or modified fields have been implemented in the EnergyPlus ForwardTranslator (and ReverseTranslator as appropriate)
  • Model API methods are tested (in src/model/test)
  • EnergyPlus ForwardTranslator Tests (in src/energyplus/Test)
  • If a new object or method, added a test in NREL/OpenStudio-resources: Add Link
  • If needed, added VersionTranslation rules for the objects (src/osversion/VersionTranslator.cpp)
  • Verified that C# bindings built fine on Windows, partial classes used as needed, etc.
  • All new and existing tests passes
  • If methods have been deprecated, update rest of code to use the new methods

Labels:

  • If change to an IDD file, add the label IDDChange
  • If breaking existing API, add the label APIChange
  • If deemed ready, add label Pull Request - Ready for CI so that CI builds your PR

Review Checklist

This will not be exhaustively relevant to every PR.

  • Perform a Code Review on GitHub
  • Code Style, strip trailing whitespace, etc.
  • All related changes have been implemented: model changes, model tests, FT changes, FT tests, VersionTranslation, OS App
  • Labeling is ok
  • If defect, verify by running develop branch and reproducing defect, then running PR and reproducing fix
  • If feature, test running new feature, try creative ways to break it
  • CI status: all green or justified

Mirror legacy model::Model: m_workflowJSON with workflowJSON/setWorkflowJSON/resetWorkflowJSON, copied by both copy constructors so clone and cloneSubset keep it.

Model::load(idfPath) now picks up workflow.osw from the IDF's companion folder, and a new load(idfPath, workflowJSONPath) overload fails if the workflow can't be loaded.

In src/workflow, the epmodel gets a clone of the OSW's WorkflowJSON once it is created in RunInitialization, and when it is reloaded from in.idf in RunReportingMeasures.

Adds Model tests for the accessors, clone, and both load paths
My fork for now, pending NatLabRockies/EnergyPlus#11966 merge and a rebuild of v26.2.0 on E+ official RTD
@jmarrec jmarrec self-assigned this Nov 25, 2026
@jmarrec jmarrec added component - epmodel Pull Request - Ready for CI This pull request if finalized and is ready for continuous integration verification prior to merge. labels Nov 25, 2026
@jmarrec
jmarrec merged commit 814972f into os-4.0-dev Nov 27, 2026
7 of 11 checks passed
@jmarrec
jmarrec deleted the os-4.0-workflowJSON branch November 27, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component - epmodel Pull Request - Ready for CI This pull request if finalized and is ready for continuous integration verification prior to merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant