Skip to content

Fixes Issue #170#171

Merged
DavidGoldwasser merged 2 commits into
developfrom
floorspace_js_zone_name
Jun 18, 2026
Merged

Fixes Issue #170#171
DavidGoldwasser merged 2 commits into
developfrom
floorspace_js_zone_name

Conversation

@DavidGoldwasser

Copy link
Copy Markdown
Collaborator

I confirmed fix on the test model. I also confirmed that if I try to use space name as zone name in OS app that it renames it, so adding prefix seems like good approach. I hard coded "zone " but could make an argument if there is interest or an option to look for and swap out "space" if it is found with "zone"

I confirmed fix on the test model. I also confirmed that if I try to use space name as zone name in OS app that it renames it, so adding prefix seems like good approach. I hard coded "zone " but could make an argument if there is interest or an option to look for and swap out "space" if it is found with "zone"

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the merge_floorspace_js_with_model OpenStudio measure to avoid OpenStudio Application renaming behavior when a newly created ThermalZone name matches a Space name (Issue #170) by adding a zone-name prefix.

Changes:

  • Prefix newly created ThermalZone names with "zone " when assigning zones to previously-unzoned spaces.
  • Bump the measure metadata version (version_id / version_modified) and update the measure.rb checksum in measure.xml.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
lib/measures/merge_floorspace_js_with_model/measure.rb Prefixes auto-created ThermalZone names to prevent collisions with Space names.
lib/measures/merge_floorspace_js_with_model/measure.xml Updates measure version metadata and checksum to reflect the script change.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/measures/merge_floorspace_js_with_model/measure.rb
@DavidGoldwasser DavidGoldwasser merged commit 559dddc into develop Jun 18, 2026
1 check passed
@DavidGoldwasser DavidGoldwasser deleted the floorspace_js_zone_name branch June 18, 2026 16:14
@github-project-automation github-project-automation Bot moved this from Ready to Test to Done in OpenStudio Measure Gems Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants