pyEPR-ESR 1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pyepr/__init__.py ADDED
@@ -0,0 +1,13 @@
1
+ from ._version import __version__, __copyright__
2
+ from .tools import eprload
3
+ from .utils import *
4
+ from .classes import Parameter, Interface
5
+ from .sequences import *
6
+ from .pulses import *
7
+ from .criteria import *
8
+ from .dataset import *
9
+ from .config import get_waveform_precision, set_waveform_precision
10
+ from .fieldsweep_analysis import *
11
+ from .relaxation_analysis import *
12
+ from .resonator_profile_analysis import *
13
+ from .colors import primary_colors
pyepr/_version.py ADDED
@@ -0,0 +1,27 @@
1
+ import toml
2
+ import importlib.util
3
+ import importlib.metadata
4
+ import os.path
5
+ MODULE_DIR = importlib.util.find_spec('pyepr').submodule_search_locations[0]
6
+
7
+ # with open(os.path.join(MODULE_DIR,"../pyproject.toml"), "r") as f:
8
+ # config = toml.load(f)
9
+ # __version__ = config["tool"]["poetry"]["version"]
10
+
11
+ __version__ = importlib.metadata.version('PyEPR')
12
+ __copyright__ = "2021-2025, Hugo Karas, Gunnar Jeschke, Stefan Stoll"
13
+
14
+ try:
15
+ import git
16
+ import os
17
+
18
+ branch = git.Repo(os.path.dirname(__file__),search_parent_directories=True).active_branch.name
19
+ commit = git.Repo(os.path.dirname(__file__),search_parent_directories=True).head.commit.hexsha
20
+
21
+ if branch == 'main':
22
+ __version__ = __version__
23
+ else:
24
+ __version__ = f"{__version__}-{branch}-{commit[:7]}"
25
+
26
+ except:
27
+ __version__ = __version__