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

merge_floorspace_js_with_model strips climate zone assignment and maybe weather file #57

Open
DavidGoldwasser opened this issue Dec 15, 2020 · 4 comments
Assignees

Comments

@DavidGoldwasser
Copy link
Collaborator

DavidGoldwasser commented Dec 15, 2020

Something, not yet identified, changed in recent OS that striped out the climate zone assignment when merging FloorSpaceJS with model. I could harvest early in the measure and re-assign later, but would rather identify and have core issue fixed in OpenStudio. My quick solution was to run this before instead of after ChangeBuildingLocation in workflows. That seemed to work fine for now.

I believe the issue is here
https://github.com/NREL/openstudio-model-articulation-gem/blob/develop/lib/measures/merge_floorspace_js_with_model/measure.rb#L121-L122

mm = OpenStudio::Model::ModelMerger.new
mm.mergeModels(model, new_model, rt.handleMapping)

If I an confirm that update OS issue here
NREL/OpenStudio#4166

@DavidGoldwasser
Copy link
Collaborator Author

@tanushree04 if you have any new details about this please add them.

@DavidGoldwasser
Copy link
Collaborator Author

Based on feedback from UO testing, it does appear this appeared in 3.1.0 and not in 3.0.1

@jmarrec
Copy link

jmarrec commented Mar 16, 2021

Cf NREL/OpenStudio#4245 that should fix it.

To have your measure work including in 3.1.0, I would modify the existing measure to manually add the mappings to site (cf https://github.com/openstudiocoalition/OpenStudioApplication/pull/221/files#diff-2308b84bfa5f511be6f8503830731cfb94e18211fb1596b44b6e3840866b3963R523) , or make use of suggestHandleMapping

ref discussion here: NREL/OpenStudio#4166 (comment)

    mm = OpenStudio::Model::ModelMerger.new
    handleMap = mm.suggestHandleMapping(model, new_model)
    mm.mergeModels(model, new_model, handleMap)

@DavidGoldwasser
Copy link
Collaborator Author

Thanks @jmarrec I missed this, I'll take a look at it soon.

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

No branches or pull requests

2 participants