Skip to content

Commit

Permalink
Merge pull request #491 from RemDelaporteMathurin/RemDelaporteMathuri…
Browse files Browse the repository at this point in the history
…n-patch-1

added __version__ attribute
  • Loading branch information
RemDelaporteMathurin authored Jun 13, 2022
2 parents 67b34e0 + 8adaf12 commit 3fb6cd8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions FESTIM/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
try:
# Python 3.8+
from importlib import metadata
except ImportError:
try:
import importlib_metadata as metadata
except ImportError:
__version__ = "unknown"

try:
__version__ = metadata.version("FESTIM")
except Exception:
__version__ = "unknown"


import sympy as sp

x, y, z, t = sp.symbols("x[0] x[1] x[2] t")
Expand Down

0 comments on commit 3fb6cd8

Please sign in to comment.