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

Physical_oM: Formalise Density management #1443

Merged

Conversation

IsakNaslundBh
Copy link
Contributor

@IsakNaslundBh IsakNaslundBh commented Oct 27, 2022

Issues addressed by this PR

Closes #1442

Adding IDesityProvider interface and making current materials in Env and Str implement it

Note there is also the LCADensity fragment in LCA_oM. AS it currently does not implement IMaterialProperty I left it out for now. One to potentially be rejigged and refactored. @michaelhoehn

Test files

https://burohappold.sharepoint.com/:f:/s/BHoM/Eg7Y5NfGykJKr5Bc1wfki6ABOXhTCqmW-pr3oNrYvFzKYA?e=tJxtni

Changelog

Additional comments

This should make 0 difference for the Environmental and structural materials in terms of their current functionality on main when used in discipline workflows. What this will enable is to in a more formalised why be able to extract and set density to a physical material.

…and Str implement it

Note there is also the LCADensity fragment in LCA_oM. AS it currently does not implement IMaterialProperty I left it out for now. One to potentially be rejigged and refactored.
@michaelhoehn
@IsakNaslundBh IsakNaslundBh added the type:feature New capability or enhancement label Oct 27, 2022
@IsakNaslundBh IsakNaslundBh self-assigned this Oct 27, 2022
@IsakNaslundBh IsakNaslundBh changed the title Phsycial_oM: Formalise Density management Physical_oM: Formalise Density management Oct 28, 2022
Physical_oM/Materials/Enums/DensityExtractionType.cs Outdated Show resolved Hide resolved
Physical_oM/Materials/Enums/DensityExtractionType.cs Outdated Show resolved Hide resolved
Physical_oM/Materials/Options/DensityExtractionOptions.cs Outdated Show resolved Hide resolved
Physical_oM/Materials/Options/DensityExtractionOptions.cs Outdated Show resolved Hide resolved
@IsakNaslundBh IsakNaslundBh marked this pull request as draft October 28, 2022 11:00
@IsakNaslundBh
Copy link
Contributor Author

Thanks for comments @FraserGreenroyd , all good and Valid.

Should have made this Draft when raising, mistake by myself, so potential kind of major changes upcoming (and might even delete the objects you have commented on).

Have turned this to draft now, but if object are kept, I will make sure to apply fixes related to you comments! :)

@FraserGreenroyd
Copy link
Contributor

@IsakNaslundBh ah, no worries! Ignore what's not relevant, lemme know when it's ready for review again and I can take another look if you need/want me to 😄

@IsakNaslundBh IsakNaslundBh marked this pull request as ready for review November 1, 2022 10:24
@IsakNaslundBh
Copy link
Contributor Author

@BHoMBot check compliance

@bhombot-ci
Copy link

bhombot-ci bot commented Nov 1, 2022

@IsakNaslundBh 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 11 requests in the queue ahead of you.

@bhombot-ci
Copy link

bhombot-ci bot commented Nov 1, 2022

@IsakNaslundBh just to let you know, I have provided a check-versioning result to this Pull Request as it was detected to be linked to other Pull Requests in a series. The comment which triggered this check came from @IsakNaslundBh on BHoM_Engine

@IsakNaslundBh
Copy link
Contributor Author

@BHoMBot check compliance
@BHoMBot check installer

@bhombot-ci
Copy link

bhombot-ci bot commented Nov 2, 2022

@IsakNaslundBh 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
  • check installer

@bhombot-ci
Copy link

bhombot-ci bot commented Nov 2, 2022

@IsakNaslundBh just to let you know, I have provided a check-versioning result to this Pull Request as it was detected to be linked to other Pull Requests in a series. The comment which triggered this check came from @IsakNaslundBh on BHoM_Engine

@IsakNaslundBh
Copy link
Contributor Author

@BHoMBot check versioning

@bhombot-ci
Copy link

bhombot-ci bot commented Nov 2, 2022

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

  • check versioning

@IsakNaslundBh
Copy link
Contributor Author

@BHoMBot check core
@BHoMBot check serialisation

@bhombot-ci
Copy link

bhombot-ci bot commented Nov 2, 2022

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

  • check core
  • check serialisation

There are 8 requests in the queue ahead of you.

@bhombot-ci
Copy link

bhombot-ci bot commented Nov 2, 2022

@IsakNaslundBh just to let you know, I have provided a check-installer result to this Pull Request as it was detected to be linked to other Pull Requests in a series. The comment which triggered this check came from @IsakNaslundBh on BHoM_Engine

Copy link
Member

@al-fisher al-fisher left a comment

Choose a reason for hiding this comment

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

Thanks @IsakNaslundBh for this.
Looking good now. Happy with code review now and further future compliance issues raised.

(I also raised #1445 regarding possible review and improvement of name given to IDensityProvider - saying that, I could not immediately think of much better - so perhaps after discussion we simply close that issue!! 😄 )

However importantly testing creation and manipulation of Physical Materials and their new Density Property is working as expected in my testing this end.

I am still having issues with the provided test scripts - which is weird - so will not approve and merge right now.

@al-fisher
Copy link
Member

@IsakNaslundBh - grab a quick chat tomorrow morning on the test scripts to see what might be going on there!

Copy link
Member

@al-fisher al-fisher left a comment

Choose a reason for hiding this comment

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

Happy to approve this now based on my previous functionality review and comments above
Issue with test scripts was resolved (un related issue to do with logs)

@IsakNaslundBh IsakNaslundBh dismissed FraserGreenroyd’s stale review November 3, 2022 09:19

Have adressed comments made in review, and getting offline approval from @fraser to dismiss this review on approval.

@al-fisher
Copy link
Member

@BHoMBot check ready-to-merge

@bhombot-ci
Copy link

bhombot-ci bot commented Nov 3, 2022

@al-fisher to confirm, the following actions are now queued:

  • check ready-to-merge

@al-fisher al-fisher merged commit 5e28967 into main Nov 3, 2022
@al-fisher al-fisher deleted the Physical_oM-#1442-DensityManagementForPhysicalMaterials branch November 3, 2022 09:21
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.

Physical_oM: Formalise Density handling for IMaterialProperties
3 participants