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

ResStock-HPXML: timeseries end convention #311

Merged
merged 7 commits into from Oct 31, 2022
Merged

Conversation

joseph-robertson
Copy link
Contributor

@joseph-robertson joseph-robertson commented Oct 18, 2022

Pull Request Description

Adds support for new timeseries_timestamp_convention argument of the ReportSimulationOutput measure. See NREL/resstock#999 for context.

Checklist

Not all may apply

  • Code changes (must work)
  • Tests exercising your feature/bug fix (check coverage report on Checks -> BuildStockBatch Tests -> Artifacts)
  • Coverage has increased or at least not decreased. Update minimum_coverage in .github/workflows/ci.yml as necessary.
  • All other unit tests passing
  • Update validation for project config yaml file changes
  • Update existing documentation
  • Run a small batch run to make sure it all works (local is fine, unless an Eagle specific feature)
  • Add to the changelog_dev.rst file and propose migration text in the pull request

@joseph-robertson joseph-robertson self-assigned this Oct 18, 2022
@github-actions
Copy link

github-actions bot commented Oct 18, 2022

File Coverage
All files 81%
base.py 81%
eagle.py 74%
exc.py 57%
localdocker.py 44%
postprocessing.py 84%
utils.py 96%
sampler/base.py 69%
sampler/downselect.py 33%
sampler/precomputed.py 93%
sampler/residential_quota.py 50%
test/test_validation.py 96%
workflow_generator/base.py 90%
workflow_generator/commercial.py 53%
workflow_generator/residential.py 96%
workflow_generator/residential_hpxml.py 36%

Minimum allowed coverage is 24%

Generated by 🐒 cobertura-action against 10ae5c3

@afontani
Copy link
Collaborator

@joseph-robertson: How does this relate to this PR in buildstockbatch: #301

@joseph-robertson
Copy link
Contributor Author

joseph-robertson commented Oct 26, 2022

@joseph-robertson: How does this relate to this PR in buildstockbatch: #301

NREL/OpenStudio-HPXML#1198 changed default to start of timestamp convention. This PR will maintain (existing) behavior of the end of timestamp convention.

So I believe instead of #301 you'd be able to control timestamp convention from the yml.

@joseph-robertson joseph-robertson marked this pull request as ready for review October 26, 2022 18:45
@joseph-robertson
Copy link
Contributor Author

joseph-robertson commented Oct 26, 2022

@afontani Confimed. We can use timeseries_timestamp_convention set to start (instead of default end) to achieve what #301 does: NREL/resstock@965b1a4. Supports ResStock, not ComStock.

@@ -315,6 +316,7 @@ def create_osw(self, sim_id, building_id, upgrade_idx):
'include_timeseries_zone_temperatures': False,
'include_timeseries_airflows': False,
'include_timeseries_weather': False,
'timeseries_timestamp_convention': 'end',
Copy link
Collaborator

Choose a reason for hiding this comment

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

So it looks like the new YAML argument is not required and defaulted to end. This would maintain the current behavior which is good.

@afontani
Copy link
Collaborator

@joseph-robertson :

@joseph-robertson
Copy link
Contributor Author

@joseph-robertson :

@joseph-robertson
Copy link
Contributor Author

Where did we land with this? Can we get this merged?

@afontani
Copy link
Collaborator

@joseph-robertson : I am good to merge this, but I am less aware of what needs to be done for the checklist in this repo.

@nmerket are you okay to merge this?

@joseph-robertson joseph-robertson merged commit 5f9a9fa into develop Oct 31, 2022
@joseph-robertson joseph-robertson deleted the ts-convention branch October 31, 2022 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants