Skip to content

Commit 3f069ba

Browse files
authored
Merge pull request #907 from compas-dev/rhino-guards
Make some guards rhino specific
2 parents 51efbed + 6629067 commit 3f069ba

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2525
* Changed base class of `compas.geometry.Primitive` and `compas.geometry.Shape` to `compas.geometry.Geometry`.
2626
* `compas_blender.artists.RobotModelArtist.collection` can be assigned as a Blender collection or a name.
2727
* Generalized the parameter `color` of `compas_blender.draw_texts` and various label drawing methods.
28+
* Changed `compas.IPY` to `compas.RHINO` in `orientation_rhino`.
2829

2930
### Removed
3031

src/compas/topology/__init__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,13 @@
8585
)
8686
from .connectivity import adjacency_from_edges
8787

88-
if compas.IPY:
88+
if compas.RHINO:
8989
from .orientation_rhino import (
9090
face_adjacency_rhino,
9191
unify_cycles_rhino
9292
)
93-
else:
93+
94+
if not compas.IPY:
9495
from .orientation_numpy import (
9596
face_adjacency_numpy,
9697
unify_cycles_numpy
@@ -114,12 +115,13 @@
114115
'adjacency_from_edges'
115116
]
116117

117-
if compas.IPY:
118+
if compas.RHINO:
118119
__all__ += [
119120
'face_adjacency_rhino',
120121
'unify_cycles_rhino',
121122
]
122-
else:
123+
124+
if not compas.IPY:
123125
__all__ += [
124126
'face_adjacency_numpy',
125127
'unify_cycles_numpy',

0 commit comments

Comments
 (0)