You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
<%= taxonomy %> doesn't work in README.md.erb #3156
This isn't a big deal, but if it is an easy fix and if we have to make a new installer anyway, it would be nice to fix. This will the readme.md on the all the updated measures on BCL.
Note: this doesn't error out the process, it just ends up with a blank space on the Readme.md under taxonomy.
Looks like the issue here is that I added support for putting taxonomy in the measure.rb which will update it in the XML. Taxonomy in measure.rb will end up in the readme.md but not if it is only in the xml.
Ok, so more of a measure update issue than core C++. That makes sense. I can close this issue unless you see reason to keep it open. For measures, I think would probably just add the def to measure.rb as measure are worked on. I don't think we have the time or an automated way to batch change them.
Shouldn't we accept a LIST inside of a single string for taxonomy?
So how do we resolve this?
Could it be this?
Update the measure template to have a taxonomy method. Probably make it accept a list too.
# A single string, or a list of BCL tags (shown here) https://bcl.nrel.gov/api/taxonomy/measuredeftaxonomyreturn['Envelope.form','HVAC.HVAC Controls']end
(On OSApp side, the user-selected taxonomy should end up in the template...)
Upon openstudio measure -u ., this should populate the tags section of the measure.xml
On the question--i think that is a question on how the new BCL is handing it. Also need to make sure that PAT handles it too (may be moot if using the MeasureManager). @kflemin
@kflemin@nllong is the new BCL ready or do we have design docs to answer this question please? I'd like to put this issue to rest as soon as possible so we can move on. Thanks!
@kflemin@nllong is the new BCL ready or do we have design docs to answer this question please? I'd like to put this issue to rest as soon as possible so we can move on. Thanks!
I think we will have some new XML data soon related to measure language and possibly additional dependences. We we update to add those to measure.rb we can fix this as well. So I may tag this for 3.11.0 instead of 3.10.0. @kflemin does that make sense.
Activity
macumber commentedon Jun 18, 2018
Looks like the issue here is that I added support for putting taxonomy in the measure.rb which will update it in the XML. Taxonomy in measure.rb will end up in the readme.md but not if it is only in the xml.
def taxonomy
return 'Envelope.form'
end
DavidGoldwasser commentedon Jun 18, 2018
Ok, so more of a measure update issue than core C++. That makes sense. I can close this issue unless you see reason to keep it open. For measures, I think would probably just add the def to measure.rb as measure are worked on. I don't think we have the time or an automated way to batch change them.
macumber commentedon Jun 18, 2018
Related to #3159
DavidGoldwasser commentedon Apr 18, 2021
I'm going to re-open this as it is something I want to show on all measure.rb files to identify where the users will find these measures on BCL.
jmarrec commentedon Apr 26, 2021
I am not following what the action item(s) is (are) @DavidGoldwasser? Could you explain please?
If I follow correctly:
measure.xmlas several<tag>(inside<tags>) https://nrel.github.io/OpenStudio-user-documentation/reference/measure_writing_guide/#measure-metadata-file-measurexmldef taxonomyinside the measure.rb, while the C++ implies a single tag: while the C++ MeasureInfo implies a single tag: https://github.com/NREL/OpenStudio/blob/3d8ee1fc5a9db6654d2c451be5bafeadda6250be/src/measure/OSMeasureInfoGetter.hpp#L82-L83So how do we resolve this?
Could it be this?
openstudio measure -u ., this should populate the tags section of the measure.xmljmarrec commentedon Apr 26, 2021
I'm not sure why the XML would allow several tags but setTaxonomyTag is single-use only.
https://github.com/NREL/OpenStudio/blob/3d8ee1fc5a9db6654d2c451be5bafeadda6250be/src/utilities/bcl/BCLMeasure.hpp#L190-L195
7 remaining items
jmarrec commentedon May 3, 2021
Yeah that error means you probably tried to make it a list but didn't update the readme.md.erb to reflect that.
I think we still need to clean up our act here so I'll reopen:
def taxonomymethod.nllong commentedon May 3, 2021
On the question--i think that is a question on how the new BCL is handing it. Also need to make sure that PAT handles it too (may be moot if using the MeasureManager). @kflemin
jmarrec commentedon Jun 8, 2021
@kflemin @nllong is the new BCL ready or do we have design docs to answer this question please? I'd like to put this issue to rest as soon as possible so we can move on. Thanks!
jmarrec commentedon May 31, 2023
Does the new BCL handle multiple Taxonomy tags?
jmarrec commentedon Oct 30, 2024
Ping
DavidGoldwasser commentedon Oct 31, 2024
I can try to close this or get fix in for 3.11 if there is something else. I'll tag it so I don't forget about it
jmarrec commentedon Mar 20, 2025
Ping
DavidGoldwasser commentedon Apr 3, 2025
I think we will have some new XML data soon related to measure language and possibly additional dependences. We we update to add those to measure.rb we can fix this as well. So I may tag this for 3.11.0 instead of 3.10.0. @kflemin does that make sense.