-
Notifications
You must be signed in to change notification settings - Fork 108
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
Fixed compas_ghpython
is not importable in Rhino8
#1391
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1391 +/- ##
==========================================
- Coverage 60.25% 60.25% -0.01%
==========================================
Files 207 207
Lines 22251 22257 +6
==========================================
+ Hits 13407 13410 +3
- Misses 8844 8847 +3 ☔ View full report in Codecov by Sentry. |
compas_ghpython
is not importable in Rhino8
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.
other than a few questions, i think this is great!
src/compas/plugins.py
Outdated
class DummyDotNetException(BaseException): | ||
pass | ||
|
||
DotNetException = DummyDotNetException |
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.
why is this done in two steps?
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.
what do you mean two steps? why I'm not using BaseException
directly?
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.
yes, why not class DotNetException(BaseException): pass
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.
no other reason except it never crossed my mind :)
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.
LGTM, with one comment
src/compas/plugins.py
Outdated
class DummyDotNetException(BaseException): | ||
pass | ||
|
||
DotNetException = DummyDotNetException |
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.
yes, why not class DotNetException(BaseException): pass
compas_ghpython
not importable in Rhino 8 CPython components, mostly by:compas_rhino.drawing
imports withincompas_ghpython
compas_ghpython.utilities
.What type of change is this?
Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.CHANGELOG.md
file in theUnreleased
section under the most fitting heading (e.g.Added
,Changed
,Removed
).invoke test
).invoke lint
).compas.datastructures.Mesh
.