Skip to content

Commit 59e3d4a

Browse files
authored
Merge pull request #1185 from compas-dev/bugfix/numpy_import
fixed syntax error when numpy is in path but IronPython
2 parents fe23d0e + f18aa1d commit 59e3d4a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
206206
* Fixed bug in `compas.geometry.angle_vectors_signed`.
207207
* Changed `compas.artists.MeshArtist` default colors.
208208
* Changed internal _plane storage of the `compas.datastructures.Halfface` from `_plane[u][v][w]` to `_plane[u][v][fkey]`
209+
* Fixed `SyntaxError` when importing COMPAS in GHPython.
209210

210211
### Removed
211212

src/compas/data/encoders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import numpy as np
2626

2727
numpy_support = True
28-
except ImportError:
28+
except (ImportError, SyntaxError):
2929
numpy_support = False
3030

3131

0 commit comments

Comments
 (0)