Skip to content

Commit fe02af1

Browse files
committed
make some guards rhino specific
1 parent 51efbed commit fe02af1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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)