-
Notifications
You must be signed in to change notification settings - Fork 299
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
Add Brep to supported importShape functions #1467
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1467 +/- ##
==========================================
+ Coverage 94.41% 94.48% +0.06%
==========================================
Files 28 28
Lines 5769 5780 +11
Branches 1068 1071 +3
==========================================
+ Hits 5447 5461 +14
+ Misses 194 193 -1
+ Partials 128 126 -2 ☔ View full report in Codecov by Sentry. |
Could you add a test? |
Hmm. I seem to be a bit stuck. I baked the test into the existing importStep, since the results should be the same for both cases. However,
I cannot replicate this locally (I get a shape type of
Edit: The volume isn't coming back correctly either - self.assertAlmostEqual(importedShape.val().Volume(), 6)
E AssertionError: 22.0 != 6 within 7 places (16.0 difference) I'm really uncertain of what's happening, and cannot reproduce on my end |
@brhubbar I think I fixed the issue. Could you make the diff coverage 100%? |
@adam-urbanczyk I have pushed a new test, but it looks like all of your test pipelines are failing as of 8:00 AM CST yesterday due to an issue with libmambapy. |
Yes, we'll fix it, but pls focus on appveyor results. Those are actionable for you (i.e. failing because of black and not CI issues). |
Okay - sorry for all of the lazy test writing; I've been trying to send up fixes in between other things and it has not been working. I fixed my environment, am getting results consistent with the CI pipelines, and have some time to think about this. My latest test revealed an inconsistency between the STEP and BREP importers. This is because the STEP importer might import multiple "Shapes" and always tosses them into a list for |
- Add a test for the BREP importer - Use os.path.join to ensure that the filepath is OS independent
5761311
to
37b1d83
Compare
Adding a case to test `type == "Compound"` revealed that that case was inconsistent with the STEP importer, so that case was removed. The compound test was obviously revealing, so it is retained for both STEP and BREP.
37b1d83
to
ca69371
Compare
Hey @adam-urbanczyk - just checking if there's anything more you would like to see from me on this - as far as I can tell, tests are passing now (assuming they test the actual behavior you'd like to see) |
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.
Thanks @brhubbar
@adam-urbanczyk Do you know what is causing Python 3.12 on Windows to hang on Azure? It hangs on the first Bash step.
I think it works now. |
Looks good, merging. |
Shape
objectThis is not unit tested but has worked for my purposesThis is unit tested, thanks for the assist from Adam