pytrms 0.9.2__py3-none-any.whl → 0.9.3__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.
- pytrms/__init__.py +38 -38
- pytrms/_base/__init__.py +24 -24
- pytrms/_base/ioniclient.py +32 -32
- pytrms/_base/mqttclient.py +119 -119
- pytrms/_version.py +26 -26
- pytrms/clients/__init__.py +33 -33
- pytrms/clients/db_api.py +200 -183
- pytrms/clients/ioniclient.py +87 -87
- pytrms/clients/modbus.py +532 -528
- pytrms/clients/mqtt.py +800 -797
- pytrms/clients/ssevent.py +82 -82
- pytrms/compose/__init__.py +2 -2
- pytrms/compose/composition.py +302 -302
- pytrms/data/IoniTofPrefs.ini +112 -112
- pytrms/data/ParaIDs.csv +731 -731
- pytrms/helpers.py +126 -120
- pytrms/instrument.py +119 -119
- pytrms/measurement.py +173 -173
- pytrms/peaktable.py +499 -501
- pytrms/plotting/__init__.py +4 -4
- pytrms/plotting/plotting.py +27 -27
- pytrms/readers/__init__.py +4 -4
- pytrms/readers/ionitof_reader.py +472 -472
- {pytrms-0.9.2.dist-info → pytrms-0.9.3.dist-info}/LICENSE +339 -339
- {pytrms-0.9.2.dist-info → pytrms-0.9.3.dist-info}/METADATA +3 -2
- pytrms-0.9.3.dist-info/RECORD +27 -0
- {pytrms-0.9.2.dist-info → pytrms-0.9.3.dist-info}/WHEEL +1 -1
- pytrms-0.9.2.dist-info/RECORD +0 -27
pytrms/plotting/__init__.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from .plotting import plot_marker
|
|
2
|
-
|
|
3
|
-
__all__ = ['plot_marker']
|
|
4
|
-
|
|
1
|
+
from .plotting import plot_marker
|
|
2
|
+
|
|
3
|
+
__all__ = ['plot_marker']
|
|
4
|
+
|
pytrms/plotting/plotting.py
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
# import matplotlib.pyplot as plt # should be inlined, loads forever!
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
def plot_marker(signal, marker, **kwargs):
|
|
5
|
-
'''Plot a `signal` and fill the regions where `marker=True`.
|
|
6
|
-
|
|
7
|
-
Returns a tuple of `figure, axis`.
|
|
8
|
-
'''
|
|
9
|
-
import matplotlib.pyplot as plt
|
|
10
|
-
|
|
11
|
-
fig, ax = plt.subplots()
|
|
12
|
-
if hasattr(signal, 'plot'):
|
|
13
|
-
subplot = signal.plot(ax=ax)
|
|
14
|
-
line, *_ = subplot.get_lines()
|
|
15
|
-
else:
|
|
16
|
-
line, = ax.plot(signal)
|
|
17
|
-
|
|
18
|
-
x_ = line.get_xdata()
|
|
19
|
-
lo, hi = ax.get_ylim()
|
|
20
|
-
ax.fill_between(x_, lo, hi, where=marker, color='orange')
|
|
21
|
-
|
|
22
|
-
ax.grid(visible=True)
|
|
23
|
-
if hasattr(signal, 'name'):
|
|
24
|
-
ax.set_title(signal.name)
|
|
25
|
-
|
|
26
|
-
return fig, ax
|
|
27
|
-
|
|
1
|
+
# import matplotlib.pyplot as plt # should be inlined, loads forever!
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def plot_marker(signal, marker, **kwargs):
|
|
5
|
+
'''Plot a `signal` and fill the regions where `marker=True`.
|
|
6
|
+
|
|
7
|
+
Returns a tuple of `figure, axis`.
|
|
8
|
+
'''
|
|
9
|
+
import matplotlib.pyplot as plt
|
|
10
|
+
|
|
11
|
+
fig, ax = plt.subplots()
|
|
12
|
+
if hasattr(signal, 'plot'):
|
|
13
|
+
subplot = signal.plot(ax=ax)
|
|
14
|
+
line, *_ = subplot.get_lines()
|
|
15
|
+
else:
|
|
16
|
+
line, = ax.plot(signal)
|
|
17
|
+
|
|
18
|
+
x_ = line.get_xdata()
|
|
19
|
+
lo, hi = ax.get_ylim()
|
|
20
|
+
ax.fill_between(x_, lo, hi, where=marker, color='orange')
|
|
21
|
+
|
|
22
|
+
ax.grid(visible=True)
|
|
23
|
+
if hasattr(signal, 'name'):
|
|
24
|
+
ax.set_title(signal.name)
|
|
25
|
+
|
|
26
|
+
return fig, ax
|
|
27
|
+
|
pytrms/readers/__init__.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from .ionitof_reader import IoniTOFReader
|
|
2
|
-
|
|
3
|
-
__all__ = ['IoniTOFReader']
|
|
4
|
-
|
|
1
|
+
from .ionitof_reader import IoniTOFReader
|
|
2
|
+
|
|
3
|
+
__all__ = ['IoniTOFReader']
|
|
4
|
+
|