Skip to content

Commit 7034eb5

Browse files
chenkasirergonzalocasas
authored andcommitted
fixed syntax error when numpy is in path but IronPython
1 parent 07e4d6d commit 7034eb5

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
@@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3131
* Fixed wrong key type when de-serializing `Graph` with integer keys leading to node not found.
3232
* Fixed bug in `VolMeshArtist.draw_cells` for Rhino, Blender and Grasshopper.
3333
* Fixed bug in the `is_polygon_in_polygon_xy` that was not correctly generating all the edges of the second polygon before checking for intersections.
34+
* Fixed `SyntaxError` when importing COMPAS in GHPython.
3435

3536
### Removed
3637

src/compas/data/encoders.py

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

2828
numpy_support = True
29-
except ImportError:
29+
except (ImportError, SyntaxError):
3030
numpy_support = False
3131

3232

0 commit comments

Comments
 (0)