-
Notifications
You must be signed in to change notification settings - Fork 50
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
Make NumApplyUpgradeOptions
dynamic
#1005
Comments
@nmerket : Thoughts? |
I think it's a good idea, but my understanding was that we needed to have that constant because the measure.xml needs to be updated as well and there's not a way to make that automatic. Maybe @joseph-robertson remembers... |
Yes @nmerket that is correct. You can see in the linked measure.xml that arguments go up to |
How does that measure.xml get updated these days? In the olden days of PAT, we would just open the in the OpenStudio GUI application. Is there a command on the CLI that updates measures now? |
By running |
If you just want to update the single measure's xml: |
Rather than trying to edit files that are committed in the repository at runtime we should take the approach in NREL/buildstockbatch#329 and make a validator on buildstockbatch that give a helpful error message about how to update the measure. |
I think even just something that would catch the issue before running would be a big improvement over the status quo. "Upgrade x has y options, and you are currently configured for z max. See documentation for how to change this." or some more succinct version. I'd rather have that ( NREL/buildstockbatch#329) sooner than this (#1005) a few months later. |
@nmerket @ekpresent So implement NREL/buildstockbatch#329 now and leave this issue for possible implementation later? |
I think so. I have a PR open for this that I need to polish up NREL/buildstockbatch#330, but I think we're just about there. |
To close let's just add documentation around how to do this on HPC (Eagle). @nmerket to improve Wiki (https://github.com/NREL/buildstockbatch/wiki/Adding-Options-to-the-ApplyUpgrade-measure) |
I added some instructions to the wiki about how to run the upgrade measure command on Eagle via Singularity. |
Description
NumApplyUpgradeOptions
is a constant parameter default to 25. It would be great to make the parameter dynamically determined based on actual upgrades in a yaml file, especially as upgrade runs are getting more complicated to specify (requiring many options) and more numerous generally and we don't always remember to modify this parameter for large upgrade runs, especially when it's buried deep inside the measure too.resstock/measures/ApplyUpgrade/resources/constants.rb
Lines 3 to 5 in 8173412
Progress
The text was updated successfully, but these errors were encountered: