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

Environment_Engine: Compute Openings from a list of panels and a glazing ratio #3258

Merged

Conversation

Felix-Mallinder
Copy link
Contributor

@Felix-Mallinder Felix-Mallinder commented Jan 19, 2024

NOTE: Depends on

Issues addressed by this PR

Closes #3226

Added compute method, as described in the linked issue, the method calculates window sizes based on glazing ratio, for externally facing panels and creates openings.

Test files

OpeningsByGlazingByRatioTestScript.zip
Unzip, open in Rhino and check actual area is equal to expected area

Changelog

Additional comments

Copy link
Contributor

@FraserGreenroyd FraserGreenroyd left a comment

Choose a reason for hiding this comment

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

Plus any compliance fixes the bot may find please @FelixMallinder-BH 😄
Additionally the PR title needs improving to meet our change log guidelines please

Environment_Engine/Compute/OpeningsFromGlazingRatio.cs Outdated Show resolved Hide resolved
Environment_Engine/Compute/OpeningsFromGlazingRatio.cs Outdated Show resolved Hide resolved
Environment_Engine/Compute/OpeningsFromGlazingRatio.cs Outdated Show resolved Hide resolved
Environment_Engine/Compute/OpeningsFromGlazingRatio.cs Outdated Show resolved Hide resolved
Environment_Engine/Compute/OpeningsFromGlazingRatio.cs Outdated Show resolved Hide resolved
Environment_Engine/Compute/OpeningsFromGlazingRatio.cs Outdated Show resolved Hide resolved
Environment_Engine/Compute/OpeningsFromGlazingRatio.cs Outdated Show resolved Hide resolved
Environment_Engine/Compute/OpeningsFromGlazingRatio.cs Outdated Show resolved Hide resolved
Environment_Engine/Compute/OpeningsFromGlazingRatio.cs Outdated Show resolved Hide resolved
@FraserGreenroyd
Copy link
Contributor

@BHoMBot check compliance

Copy link

bhombot-ci bot commented Jan 23, 2024

@FraserGreenroyd to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check branch-compliance
  • check dataset-compliance
  • check copyright-compliance

There are 1 requests in the queue ahead of you.

@Felix-Mallinder
Copy link
Contributor Author

@BHoMBot check for copyright-compliance

Copy link

bhombot-ci bot commented Jan 23, 2024

@FelixMallinder-BH sorry, I didn't understand.
Was that comment an instruction for me? If so, could you state again what check you would like me to do?
For a list of available instructions, please see this wiki page.

@Felix-Mallinder
Copy link
Contributor Author

@BHoMBot check copyright-compliance

Copy link

bhombot-ci bot commented Jan 23, 2024

@FelixMallinder-BH to confirm, the following actions are now queued:

  • check copyright-compliance

Copy link

bhombot-ci bot commented Jan 23, 2024

@FelixMallinder-BH fix requested for copyright headers.

The errors with the copyright headers on the CS (.cs) files have been recorded as annotations on the checks tab.

I will apply the fixes to every case detailed on the checks tab. If you want to perform the fixes in a different manner please resolve this manually and rerun the check.

Each CS (.cs) file that does not have the current copyright header will have it applied. The current copyright header can be examined here.

If you are happy for me to go ahead and perform this action, please reply with:

@BHoMBot fix copyright headers ref. 20780543059

@Felix-Mallinder
Copy link
Contributor Author

@BHoMBot fix copyright headers ref. 20780543059

Copy link

bhombot-ci bot commented Jan 23, 2024

@FelixMallinder-BH I'm sorry, but I cannot understand which check reference you are trying to provide. Please can you try again?

@Tom-Kingstone
Copy link
Contributor

@BHoMBot check compliance

@Tom-Kingstone
Copy link
Contributor

@BHoMBot check compliance

Copy link

bhombot-ci bot commented Jan 23, 2024

@Tom-Kingstone to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check branch-compliance
  • check dataset-compliance
  • check copyright-compliance

Copy link

bhombot-ci bot commented Jan 23, 2024

@Tom-Kingstone fix requested for copyright headers.

The errors with the copyright headers on the CS (.cs) files have been recorded as annotations on the checks tab.

I will apply the fixes to every case detailed on the checks tab. If you want to perform the fixes in a different manner please resolve this manually and rerun the check.

Each CS (.cs) file that does not have the current copyright header will have it applied. The current copyright header can be examined here.

If you are happy for me to go ahead and perform this action, please reply with:

@BHoMBot fix copyright headers ref. 20780849163

@Tom-Kingstone
Copy link
Contributor

@BHoMBot fix copyright headers ref. 20780849163

Copy link

bhombot-ci bot commented Jan 23, 2024

@Tom-Kingstone sorry, but the check you're asking me to make automatic fixes for has not failed, so I cannot make any changes at this point.

@Tom-Kingstone
Copy link
Contributor

@BHoMBot check copyright-compliance

Copy link

bhombot-ci bot commented Jan 23, 2024

@Tom-Kingstone to confirm, the following actions are now queued:

  • check copyright-compliance

@Tom-Kingstone
Copy link
Contributor

@BHoMBot check core
@BHoMBot check compliance

Copy link

bhombot-ci bot commented Jan 23, 2024

@Tom-Kingstone to confirm, the following actions are now queued:

  • check core
  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check branch-compliance
  • check dataset-compliance
  • check copyright-compliance

Copy link

bhombot-ci bot commented Jan 23, 2024

The check copyright-compliance has already been run previously and recorded as a successful check. This check has not been run again at this time.

… moved private method logic to main public method
@Tom-Kingstone
Copy link
Contributor

@BHoMBot check core
@BHoMBot check compliance

Copy link

bhombot-ci bot commented Feb 5, 2024

@Tom-Kingstone to confirm, the following actions are now queued:

  • check core
  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check branch-compliance
  • check dataset-compliance
  • check copyright-compliance

Copy link
Contributor

@Tom-Kingstone Tom-Kingstone left a comment

Choose a reason for hiding this comment

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

I tested after changes using the test file provided, and the area returned is the same. Also the opening produced looks correct given the inputs, and ignoring panels is working.

Copy link
Contributor

@albinber albinber left a comment

Choose a reason for hiding this comment

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

Going by the test script everything works as intended. Good work @FelixMallinder-BH & @Tom-Kingstone! Happy to approve :)

@Felix-Mallinder
Copy link
Contributor Author

Reviewed and re-tested @Tom-Kingstone 's changes, happy that they solved the previous issues and functionality follows.

@Tom-Kingstone Tom-Kingstone changed the title Environment engine #3226 openings from glazing ratio Environment_Engine: Compute Openings from a list of panels and a glazing ratio Feb 5, 2024
Copy link
Contributor

@FraserGreenroyd FraserGreenroyd left a comment

Choose a reason for hiding this comment

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

I've reviewed the code and the tests done by the team and all looks good.

However, as noted in #3279, we do have issues with openings being created larger than their host panels but that comes from the Create method rather than necessarily this method for now, so let's merge this PR for further testing, and then revisit this as necessary when handling #3279

@FraserGreenroyd
Copy link
Contributor

@BHoMBot check required

Copy link

bhombot-ci bot commented Feb 5, 2024

@FraserGreenroyd to confirm, the following actions are now queued:

  • check code-compliance
  • check documentation-compliance
  • check project-compliance
  • check core
  • check null-handling
  • check serialisation
  • check versioning
  • check installer

Copy link

bhombot-ci bot commented Feb 5, 2024

The check documentation-compliance has already been run previously and recorded as a successful check. This check has not been run again at this time.

Copy link

bhombot-ci bot commented Feb 5, 2024

The check code-compliance has already been run previously and recorded as a successful check. This check has not been run again at this time.

@FraserGreenroyd
Copy link
Contributor

@BHoMBot this is a DevOps instruction. I am requesting neutral checks on: unit-tests

@FraserGreenroyd
Copy link
Contributor

@BHoMBot check ready-to-merge

Copy link

bhombot-ci bot commented Feb 5, 2024

@FraserGreenroyd to confirm, the following actions are now queued:

  • check ready-to-merge

There are 19 requests in the queue ahead of you.

Copy link

bhombot-ci bot commented Feb 5, 2024

@FraserGreenroyd I have provided neutral checks to the checks requested. These checks will need to be run properly to obtain full results.

@FraserGreenroyd FraserGreenroyd merged commit 4e5ef3c into develop Feb 5, 2024
13 checks passed
@FraserGreenroyd FraserGreenroyd deleted the Environment_Engine-#3226-OpeningsFromGlazingRatio branch February 5, 2024 13:40
@bhombot-ci bhombot-ci bot mentioned this pull request Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New capability or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Environment_Engine: compute method to create openings on external panels by glazing ratio
4 participants