Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert UpgradeCosts measure to ModelMeasure #1253

Merged
merged 30 commits into from
Jul 19, 2024
Merged

Conversation

joseph-robertson
Copy link
Contributor

@joseph-robertson joseph-robertson commented Jun 6, 2024

Pull Request Description

UpgradeCosts does not need to be a reporting measure; it doesn't actually report any simulation output.
ReportHPXMLOutput does not need to be its own measure; it can be pulled into UpgradeCosts.

If UpgradeCosts becomes a model measure, it gets applied before simulation time and therefore its registered values would show up in the results.csv when using the measures_only flag.

This also fixes a bug related to using the measure_only flag. When using measure_only, the results.json file is not produced. Therefore, no registered values would show up in the results csv. Now we use data_point_out.json, which is produced when using measures_only.

Update buildstock.rb and sample yml files with workflow generator version tag. This enables us to point to buildstockbatch's develop branch for CI tests.

Companion PR: NREL/buildstockbatch#458

Checklist

Not all may apply:

  • Tests (and test files) have been updated
  • Documentation has been updated
  • Changelog has been updated
  • openstudio tasks.rb update_measures has been run
  • No unexpected regression test changes on CI (checked comparison artifacts)

@joseph-robertson joseph-robertson changed the title Convert ReportHPXMLOutput and UpgradeCosts measures to model measures Convert UpgradeCosts measures to model measure Jun 7, 2024
@joseph-robertson joseph-robertson changed the title Convert UpgradeCosts measures to model measure Convert UpgradeCosts measure to ModelMeasure Jun 7, 2024
@@ -487,12 +487,12 @@ def self.run(in_osw, parent_dir, run_output, upgrade, measures, reporting_measur
completed_at = out['completed_at']
completed_status = out['completed_status']

results = File.join(parent_dir, 'run/results.json')
data_point_out = File.join(parent_dir, 'run/data_point_out.json')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no results.json when using the measures_only flag.

@joseph-robertson joseph-robertson marked this pull request as ready for review June 10, 2024 19:55
@joseph-robertson joseph-robertson merged commit 4e8cc64 into develop Jul 19, 2024
7 checks passed
@joseph-robertson joseph-robertson deleted the res-reporting branch July 19, 2024 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants