sodetlib 0.6.1rc1__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.
sodetlib/__init__.py ADDED
@@ -0,0 +1,22 @@
1
+ from ._version import get_versions
2
+ __version__ = get_versions()['version']
3
+ del get_versions
4
+
5
+ import os
6
+ from functools import wraps
7
+ try:
8
+ import epics
9
+ from pysmurf.client.util.pub import set_action
10
+ except Exception as e:
11
+ # Just return base function regularly if can't import set_action
12
+ def set_action(*args, **kwargs):
13
+ def dec(func):
14
+ return func
15
+ return dec
16
+ os.environ['NO_PYSMURF'] = 'true'
17
+
18
+
19
+ from sodetlib.util import *
20
+ from sodetlib.stream import *
21
+ from sodetlib import noise
22
+
sodetlib/_version.py ADDED
@@ -0,0 +1,21 @@
1
+
2
+ # This file was generated by 'versioneer.py' (0.29) from
3
+ # revision-control system data, or from the parent directory name of an
4
+ # unpacked source archive. Distribution tarballs contain a pre-generated copy
5
+ # of this file.
6
+
7
+ import json
8
+
9
+ version_json = '''
10
+ {
11
+ "date": "2025-12-20T16:43:56-0600",
12
+ "dirty": false,
13
+ "error": null,
14
+ "full-revisionid": "dd546294c792c9c485347c4f4bafeef7304f7b2b",
15
+ "version": "0.6.1rc1"
16
+ }
17
+ ''' # END VERSION_JSON
18
+
19
+
20
+ def get_versions():
21
+ return json.loads(version_json)
sodetlib/constants.py ADDED
@@ -0,0 +1,13 @@
1
+ """
2
+ Constants useful for general sodetlib ops.
3
+ """
4
+ import numpy as np
5
+
6
+ NBGS = 12
7
+ NBANDS = 8
8
+ CHANS_PER_BAND= 512
9
+ pA_per_phi0 = 9e6
10
+ pA_per_rad = pA_per_phi0 / (2*np.pi)
11
+
12
+ # Max bias voltage is 20 V, and there are 20 bits (about 1.0973e-5)
13
+ rtm_bit_to_volt = 20/(2**20)