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

Commit

Permalink
Merge pull request #351 from dstansby/dstansby-patch-1
Browse files Browse the repository at this point in the history
Make sympy optional dep
  • Loading branch information
dstansby committed Feb 25, 2022
2 parents ea315be + 7e4f5e5 commit 0c5b78a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions doc/source/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Changelog
=========

1.1.1
-----
Fixed imports so pfsspy does not depend on ``sympy`` as a runtime dependency.
(``sympy`` is still needed for the ``analytic`` module however).

1.1.0
-----
New requirements
Expand Down
6 changes: 5 additions & 1 deletion pfsspy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Import pfsspy sub-modules to have them available through pfsspy.{name}
import pfsspy.analytic
try:
import pfsspy.analytic
except ModuleNotFoundError:
# If sympy isn't installed
pass
import pfsspy.coords
import pfsspy.fieldline
# Import this to register map sources
Expand Down

0 comments on commit 0c5b78a

Please sign in to comment.