-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from Ericgig/misc.familly
Add entry point for qutip-family
- Loading branch information
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
"""QuTiP family package entry point.""" | ||
|
||
from . import __version__ | ||
|
||
|
||
def version(): | ||
"""Return information to include in qutip.about().""" | ||
return "qutip-jax", __version__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
""" Tests for qutip_jax.family. """ | ||
|
||
import re | ||
|
||
from qutip_jax import family | ||
|
||
|
||
class TestVersion: | ||
def test_version(self): | ||
pkg, version = family.version() | ||
assert pkg == "qutip-jax" | ||
assert re.match(r"\d+\.\d+\.\d+.*", version) |