-
Notifications
You must be signed in to change notification settings - Fork 13
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
Structure_Engine: Transform methods added for structural elements #2361
Structure_Engine: Transform methods added for structural elements #2361
Conversation
Tolerance and UT added @LMarkowski @IsakNaslundBh, the PR is ready to review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally working great!
Just a comment on passing on the tolerances
Co-authored-by: Isak Näslund <[email protected]>
I have committed suggestions made by @IsakNaslundBh plus updated the GH script as well as the UTs including the extra test content provided by @IsakNaslundBh too. Should be ready for re-review now 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another quick one, see below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works and looks good to me! As in the physical added the erroneous cases to the UT.
@BHoMBot check unit tests when you'll be upside up again. |
@BHoMBot check unit |
@LMarkowski to confirm, |
One more thought that I forgot to include in the review. The test only includes a validation for (Edit: Same situation with |
@LMarkowski the methods for Not sure if adding those tests as separate entities would bring any value - but can do, if you like, this should not be much of an effort. |
@pawelbaran as said I think test for panels is enough for me as well validation-wise. My only concern are missing UTs. They could be done even by transforming exploded panels. The question is if it's worth it. |
It's always worth it, but it might not be valid to bring it in in this PR. The question is more accurately as whether it's worth it for this PR, not worth it overall. |
If it is worth it overall, I will add the UT's in right now - exploding the panels and kicking them in will take a minute, literally. |
@FraserGreenroyd Well, having some time put in adding missing tests I'd say we should enforce adding the UT every time we add a new public method. Reduce backlog. (What about private ones though 🤔) |
Yup, agreed. That's why Environments/MEP are enforcing new Unit Tests on PRs (@pawelbaran found that when I requested changes on his MEP version of this PR solely for a missing unit test!). I believe structures are doing the same but @IsakNaslundBh can confirm that. I definitely recommend it though!
Private methods don't get exposed but are used by public methods to aid calculations, so the unit tests of public methods will be good enough (for now, we might change that later mind). |
Oke, I have added the missing UTs and updated the GH script. |
@BHoMBot check all |
@pawelbaran to confirm, |
/azp run BHoM_Engine.CheckInstaller |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now it's perfect! Thank you.
RTM as soon as we have an approval from @BHoMBot
You mean never? |
Please be advised that the check with reference 2039032949 has more than 50 annotations of notes. API limitations restrict annotations to 50. You may need to rerun this check to obtain the next set when you make changes. At the time of reporting this check, there are 290 additional annotations waiting, made up of 290 errors and 0 warnings. |
@BHoMBot you fool |
@pawelbaran sorry, I didn't understand. "@BHoMBot fix project file" |
@BHoMBot check installer |
@pawelbaran to confirm, |
|
Ok, bot issues aside, this is now ready for @IsakNaslundBh to give a decision from his changes requested and go for merge at that point 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have not tested after the changes, but trust @LMarkowski s test!
Issues I have raised have been resolved!
@BHoMBot check ready-to-merge |
@FraserGreenroyd to confirm, the task for checking if this Pull Request is ready to merge is now queued. |
Issues addressed by this PR
Contributes to resolving #2322
Test files
On SharePoint. I have disabled the test of FEMeshes because for some weird reason they slow GH down badly even if a completely unrelated part of the script gets modified - I could not come up with an explanation for that, maybe the reviewer will have an idea 😃 However, this is outside of the scope of this PR, because the above issue does not affect the correctness of the results, so please do not be afraid of enabling the disabled part.
Changelog
Transform
methods added forNode
,Bar
,RigidLink
,Edge
,Opening
,Panel
andFEMesh
Additional comments
I believe this is the most problematic/sensitive of all transform-related PRs so far, so probably worth @IsakNaslundBh's time for a proper review. I hope the provided test files will make the process a bit less painful.