Skip to content
This repository was archived by the owner on Aug 24, 2023. It is now read-only.

Commit 0c5b78a

Browse files
authored
Merge pull request #351 from dstansby/dstansby-patch-1
Make sympy optional dep
2 parents ea315be + 7e4f5e5 commit 0c5b78a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

doc/source/changes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
Changelog
44
=========
55

6+
1.1.1
7+
-----
8+
Fixed imports so pfsspy does not depend on ``sympy`` as a runtime dependency.
9+
(``sympy`` is still needed for the ``analytic`` module however).
10+
611
1.1.0
712
-----
813
New requirements

pfsspy/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Import pfsspy sub-modules to have them available through pfsspy.{name}
2-
import pfsspy.analytic
2+
try:
3+
import pfsspy.analytic
4+
except ModuleNotFoundError:
5+
# If sympy isn't installed
6+
pass
37
import pfsspy.coords
48
import pfsspy.fieldline
59
# Import this to register map sources

0 commit comments

Comments
 (0)