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

Fix set bldg and system type #145

Merged
merged 2 commits into from
Feb 9, 2024
Merged

Conversation

haneslinger
Copy link
Contributor

#144

The test change break things cause "Mutli family" has a maxfloor, and that comparison is broken.
This fixes things because the wrong variable was being used in the comparison.

Copy link
Contributor

@ThibaultMarzullo ThibaultMarzullo left a comment

Choose a reason for hiding this comment

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

Looks good!

@@ -72,7 +72,7 @@
<auc:YearOfLastMajorRemodel>2003</auc:YearOfLastMajorRemodel>
<auc:Sections>
<auc:Section ID="Default_Section">
<auc:OccupancyClassification>Retail</auc:OccupancyClassification>
<auc:OccupancyClassification>Multifamily</auc:OccupancyClassification>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<auc:OccupancyClassification>Multifamily</auc:OccupancyClassification>
<auc:OccupancyClassification>Retail</auc:OccupancyClassification>

Copy link
Contributor

Choose a reason for hiding this comment

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

Reverting this back to original classification.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is important for the test. Prior to the change in lib/buildingsync/model_articulation/building_section.rb, a bsync file with OccupancyClassification Multifamily would break the gem. So I wanted to add that test case

@haneslinger haneslinger force-pushed the FIX-set_bldg_and_system_type branch 2 times, most recently from cf29ca9 to 010060f Compare February 7, 2024 23:28
@haneslinger haneslinger merged commit 281d4ff into develop Feb 9, 2024
8 checks passed
@haneslinger haneslinger deleted the FIX-set_bldg_and_system_type branch February 9, 2024 19:51
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

Successfully merging this pull request may close these issues.

2 participants