apstrim 4.2.2__tar.gz → 4.2.3__tar.gz
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.
- {apstrim-4.2.2 → apstrim-4.2.3}/PKG-INFO +1 -1
- {apstrim-4.2.2 → apstrim-4.2.3}/apstrim/__main__.py +2 -2
- {apstrim-4.2.2 → apstrim-4.2.3}/apstrim/apstrim.py +11 -21
- apstrim-4.2.3/apstrim.aps_20251017_1433.aps +0 -0
- apstrim-4.2.3/apstrim_20251017_1437.aps +0 -0
- apstrim-4.2.3/apstrim_20251017_1526.aps +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/pyproject.toml +2 -1
- apstrim-4.2.2/data/apstrim.aps +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/CHANGELOG.md +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/LICENSE +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/README.md +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/apstrim/__init__.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/apstrim/cad_pvaccess.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/apstrim/helpTxtView.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/apstrim/liteCNS.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/apstrim/pubEPICS.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/apstrim/scan.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/apstrim/view.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/cad_env/__init__.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/cad_env/cad_env +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/cad_env/screenlock_user.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/cad_error/__init__.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/cad_error/base.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/cad_error/rhic_errors.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/cad_io/__init__.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/cad_io/adoIf.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/cad_io/adoaccess.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/cad_io/am.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/cad_io/ampy.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/cad_io/cns.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/cad_io/declarative_manager.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/cad_io/epicsAccess_caproto.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/cad_io/liteAccess.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/cad_io/liteCNS.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/cad_io/notif.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/cad_io/numpyAccess.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/cad_io/project_url.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/cad_io/rpc.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/cad_io/setHistory.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/config/peaksim_pvp.py +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3/data}/apstrim.aps +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/data/apstrim_100Hz_10Items.aps +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/data/apstrim_100Hz_oneItem.aps +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3/data}/apstrim_20251014_1140.aps +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3/data}/apstrim_20251014_1257.aps +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3/data}/apstrim_20251014_1325.aps +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3/data}/apstrim_20251014_1411.aps +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3/data}/apstrim_20251014_1429.aps +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3/data}/apstrim_20251014_1431.aps +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3/data}/apstrim_20251014_1437.aps +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3/data}/apstrim_20251014_1438.aps +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3/data}/apstrim_20251014_1439.aps +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/data/apstrim_am_simple_array_simple.test.sinM.aps +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/docs/_config.yml +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/docs/apstrim.html +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/docs/apstrim_file_format.png +0 -0
- {apstrim-4.2.2 → apstrim-4.2.3}/docs/scan.html +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: apstrim
|
|
3
|
-
Version: 4.2.
|
|
3
|
+
Version: 4.2.3
|
|
4
4
|
Summary: Logger and extractor of time-series data (e.g. EPICS PVs or liteServer LDOs).
|
|
5
5
|
Project-URL: Homepage, https://github.com/ASukhanov/apstrim
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/ASukhanov/apstrim/issues
|
|
@@ -18,8 +18,8 @@ def main():
|
|
|
18
18
|
#'Disable conversion of float64 to float32')
|
|
19
19
|
#parser.add_argument('-f', '--file', default=None, help=\
|
|
20
20
|
#'Configuration file')
|
|
21
|
-
parser.add_argument('-o', '--outfile', default='apstrim
|
|
22
|
-
'
|
|
21
|
+
parser.add_argument('-o', '--outfile', default='apstrim', help=\
|
|
22
|
+
'Prefix of the logbook file for storing PVs and data objects, the file name will have form: prefix_yyyymmdd_hhmm.aps')
|
|
23
23
|
parser.add_argument('-n', '--namespace', default='EPICS',
|
|
24
24
|
choices=['EPICS', 'PVAccess', 'ADO', 'LITE'], help=
|
|
25
25
|
'Infrastructure namespace')
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
#
|
|
7
7
|
# https://github.com/ASukhanov/apstrim/blob/main/LICENSE
|
|
8
8
|
#
|
|
9
|
-
__version__ = '4.2.
|
|
9
|
+
__version__ = '4.2.3 2025-10-17' # 1)do not safe_exit() after serialize, 2)output file name have form: prefix_yyyymmdd_hhmm.aps
|
|
10
10
|
|
|
11
11
|
import sys, time, string, copy
|
|
12
12
|
import os, pathlib, datetime
|
|
@@ -88,9 +88,8 @@ def packnp(key, data, use_single_float=True):
|
|
|
88
88
|
try:
|
|
89
89
|
npdata = np.array(data)
|
|
90
90
|
except Exception as e:
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
return data
|
|
91
|
+
printw(f'In packnp of item {key}: {e}')
|
|
92
|
+
return None
|
|
94
93
|
#print(f'npdata shape: {npdata.shape} of {npdata.dtype}')
|
|
95
94
|
if npdata.shape == ():
|
|
96
95
|
return data
|
|
@@ -230,29 +229,20 @@ class apstrim():
|
|
|
230
229
|
pvname = f'{pvname}[{pslice[0]}:{pslice[1]}]'
|
|
231
230
|
pvlist.append(pvname)
|
|
232
231
|
self.indexSection = encoderDump({'index':pvlist})
|
|
233
|
-
printi(f'IndexSection: {self.indexSection}')
|
|
232
|
+
#printi(f'IndexSection: {self.indexSection}')
|
|
234
233
|
|
|
235
|
-
def start(self,
|
|
234
|
+
def start(self, prefix='apstrim', howLong=99e6):
|
|
236
235
|
"""Start the streaming of the data objects to the logbook file.
|
|
237
|
-
|
|
238
|
-
a new file will be open with the provided name.
|
|
239
|
-
|
|
236
|
+
prefix: the file name will have form: prefix_yyyymmdd_hhmm.aps
|
|
240
237
|
**howLong**: Time interval (seconds) for data collection.
|
|
241
238
|
"""
|
|
242
239
|
self._eventStop.clear()
|
|
243
240
|
self.howLong = howLong
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
try: fname,ext = fileName.rsplit('.',1)
|
|
250
|
-
except: fname,ext = fileName,''
|
|
251
|
-
otherName = fname + suffix + '.' + ext
|
|
252
|
-
os.rename(fileName, otherName)
|
|
253
|
-
printw(f'Existing file {fileName} have been renamed to {otherName}')
|
|
254
|
-
except Exception as e:
|
|
255
|
-
pass
|
|
241
|
+
#modificationTime = pathlib.Path(fileName).stat().st_mtime
|
|
242
|
+
#dt = datetime.datetime.fromtimestamp(modificationTime)
|
|
243
|
+
#suffix = dt.strftime('_%Y%m%d_%H%M')
|
|
244
|
+
suffix = time.strftime('_%Y%m%d_%H%M.aps')
|
|
245
|
+
fileName = os.path.expanduser(prefix+suffix)
|
|
256
246
|
|
|
257
247
|
self.logbook = open(fileName, 'wb')
|
|
258
248
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "apstrim"
|
|
7
|
-
version = "4.2.
|
|
7
|
+
version = "4.2.3"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name="Andrei Sukhanov", email="cyxandr@gmail.com" },
|
|
10
10
|
]
|
|
@@ -20,6 +20,7 @@ dependencies = [
|
|
|
20
20
|
"msgpack",
|
|
21
21
|
"liteAccess",
|
|
22
22
|
"caproto",
|
|
23
|
+
#"p4p",
|
|
23
24
|
]
|
|
24
25
|
[project.urls]
|
|
25
26
|
"Homepage" = "https://github.com/ASukhanov/apstrim"
|
apstrim-4.2.2/data/apstrim.aps
DELETED
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|