ResStockArguments: convert args to double, integer#1269
Conversation
|
Also, would it make sense to go one step further? Just read in all arguments as string, which will significantly simplify the code here and then also handle choice arguments in your new method. |
I suspect this would conflict with how we automatically build our RTD based on measure.xml. Thoughts here @afontani? |
|
Oh boy; I think this change explodes runtime for ResStockArguments. See the measure-tests CI job... |
Seems like you are calling |
In the docs we're generally using Required=false to mean that a choice of auto is available, not that you can leave the argument out of the lookup. |
|
And why are some of the ResStockArguments arguments optional? Like this one? EDIT: Maybe they should all be required and use "auto" if they are to be defaulted, so that all arguments are consistent. |
You mean introduce a new |
That one is optional because it's not required for SFD. When MF, it's sampled as either Bottom, Middle, or Top. |
…o res-args-convert-types
…e point of a hash if that you can look up the value...
…tock into res-args-convert-types # Conflicts: # measures/ResStockArguments/measure.xml
shorowit
left a comment
There was a problem hiding this comment.
Overall this looks good to me (assuming the CI is happy with my last commit). Though I do have a couple minor comments.
Pull Request Description
Avoids a bug that would be introduced by making
air_leakage_valueoptional in NatLabRockies/OpenStudio-HPXML#1760.Per suggestion by @shorowit, create a method for automatically converting ResStockArguments argument data types based on original argument type.
Checklist
Not all may apply:
Tests (and test files) have been updatedDocumentation has been updatedIf related to resstock-estimation, checklist includes data dictionary, source report, options saturation, options_lookup.openstudio tasks.rb update_measureshas been run