sardana-nxsrecorder 3.22.0__tar.gz → 3.23.0__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.
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/ChangeLog +4 -0
- {sardana-nxsrecorder-3.22.0/sardana_nxsrecorder.egg-info → sardana-nxsrecorder-3.23.0}/PKG-INFO +4 -1
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/README.rst +3 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/man/sardananxsrecorder.1 +7 -1
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0/sardana_nxsrecorder.egg-info}/PKG-INFO +4 -1
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/sardananxsrecorder/__init__.py +1 -1
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/sardananxsrecorder/nxsrecorder.py +26 -1
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/.ci/debian10_py2/Dockerfile +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/.ci/debian10_py3/Dockerfile +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/.ci/debian8_py2/Dockerfile +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/.ci/debian8_py3/Dockerfile +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/.ci/debian9_py2/Dockerfile +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/.ci/debian9_py3/Dockerfile +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/.ci/install.sh +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/.ci/run.sh +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/.ci/ubuntu16.04_py2/Dockerfile +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/.ci/ubuntu16.04_py3/Dockerfile +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/.ci/ubuntu18.04_py2/Dockerfile +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/.ci/ubuntu18.04_py3/Dockerfile +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/.ci/ubuntu20.04_py3/Dockerfile +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/.flake8 +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/.github/workflows/tests.yml +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/.gitignore +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/COPYRIGHT +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/MANIFEST.in +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/doc/Makefile +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/doc/conf.py +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/doc/index.rst +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/doc/make.bat +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/doc/sardananxsrecorder.rst +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/sardana_nxsrecorder.egg-info/SOURCES.txt +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/sardana_nxsrecorder.egg-info/dependency_links.txt +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/sardana_nxsrecorder.egg-info/not-zip-safe +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/sardana_nxsrecorder.egg-info/requires.txt +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/sardana_nxsrecorder.egg-info/top_level.txt +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/setup.cfg +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/setup.py +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/test/__init__.py +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/test/__main__.py +0 -0
- {sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/test/main.py +0 -0
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
2024-06-04 Jan Kotanski <jankotan@gmail.com>
|
|
2
|
+
* skip acquisition for the modes listed in NeXusSkipAcquisitionModes variable (#117)
|
|
3
|
+
* tagged as 3.23.0
|
|
4
|
+
|
|
1
5
|
2024-06-03 Jan Kotanski <jankotan@gmail.com>
|
|
2
6
|
* improve support for ScanFile formating wih _%05d and _{ScanID:05d} (#114)
|
|
3
7
|
* tagged as 3.22.0
|
{sardana-nxsrecorder-3.22.0/sardana_nxsrecorder.egg-info → sardana-nxsrecorder-3.23.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sardana-nxsrecorder
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.23.0
|
|
4
4
|
Summary: NeXus Sardana Scan Recorder
|
|
5
5
|
Home-page: https://github.com/nexdatas/sardana-nxs-filerecorder/
|
|
6
6
|
Author: Jan Kotanski
|
|
@@ -234,6 +234,8 @@ The NeXus file recorder uses the following sardana environment variables
|
|
|
234
234
|
|
|
235
235
|
* **ActiveMntGrp** *(str)* - active measurement group
|
|
236
236
|
* **ScanID** *(int)* - the last scan identifier number, default: ``-1``
|
|
237
|
+
* **ScanDir** *(str)* - the scan directory
|
|
238
|
+
* **ScanFile** *(list)* - a list of scan files
|
|
237
239
|
* **NeXusSelectorDevice** *(str)* - NXSRecSelector tango device if more installed, otherwise first one found
|
|
238
240
|
|
|
239
241
|
* **NXSAppendSciCatDataset** *(bool)* - append scan name to scicat dataset list file, default: ``False``
|
|
@@ -247,4 +249,5 @@ The NeXus file recorder uses the following sardana environment variables
|
|
|
247
249
|
* **MetadataScript** *(str)* - a python module file name containing ``main()`` which provides a dictionary with user metadata stored in the INIT mode, default: ``""``
|
|
248
250
|
* **ScicatMeasurements** *(dict)* - a dictionary of measurement names indexed by ``ScanDir`` and used by ``scingestor``, default: ``{}``
|
|
249
251
|
* **CreateMeasurementFile** *(bool)* - create a measurement file with its filename releated to ``ScicatMeasurements`` or ``ScanFile``, default: ``False``
|
|
252
|
+
* **NeXusSkipAcquisitionModes** *(list)* - a list of strategy modes for which acquisition is skip
|
|
250
253
|
|
|
@@ -209,6 +209,8 @@ The NeXus file recorder uses the following sardana environment variables
|
|
|
209
209
|
|
|
210
210
|
* **ActiveMntGrp** *(str)* - active measurement group
|
|
211
211
|
* **ScanID** *(int)* - the last scan identifier number, default: ``-1``
|
|
212
|
+
* **ScanDir** *(str)* - the scan directory
|
|
213
|
+
* **ScanFile** *(list)* - a list of scan files
|
|
212
214
|
* **NeXusSelectorDevice** *(str)* - NXSRecSelector tango device if more installed, otherwise first one found
|
|
213
215
|
|
|
214
216
|
* **NXSAppendSciCatDataset** *(bool)* - append scan name to scicat dataset list file, default: ``False``
|
|
@@ -222,4 +224,5 @@ The NeXus file recorder uses the following sardana environment variables
|
|
|
222
224
|
* **MetadataScript** *(str)* - a python module file name containing ``main()`` which provides a dictionary with user metadata stored in the INIT mode, default: ``""``
|
|
223
225
|
* **ScicatMeasurements** *(dict)* - a dictionary of measurement names indexed by ``ScanDir`` and used by ``scingestor``, default: ``{}``
|
|
224
226
|
* **CreateMeasurementFile** *(bool)* - create a measurement file with its filename releated to ``ScicatMeasurements`` or ``ScanFile``, default: ``False``
|
|
227
|
+
* **NeXusSkipAcquisitionModes** *(list)* - a list of strategy modes for which acquisition is skip
|
|
225
228
|
|
|
@@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
|
27
27
|
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
|
|
28
28
|
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
|
|
29
29
|
..
|
|
30
|
-
.TH "SARDANANXSRECORDER" "1" "Jun
|
|
30
|
+
.TH "SARDANANXSRECORDER" "1" "Jun 04, 2024" "3.23" "Sardana NeXus Recorder"
|
|
31
31
|
.SH NAME
|
|
32
32
|
sardananxsrecorder \- sardananxsrecorder Documentation
|
|
33
33
|
.sp
|
|
@@ -326,6 +326,10 @@ The NeXus file recorder uses the following sardana environment variables
|
|
|
326
326
|
.IP \(bu 2
|
|
327
327
|
\fBScanID\fP \fI(int)\fP \- the last scan identifier number, default: \fB\-1\fP
|
|
328
328
|
.IP \(bu 2
|
|
329
|
+
\fBScanDir\fP \fI(str)\fP \- the scan directory
|
|
330
|
+
.IP \(bu 2
|
|
331
|
+
\fBScanFile\fP \fI(list)\fP \- a list of scan files
|
|
332
|
+
.IP \(bu 2
|
|
329
333
|
\fBNeXusSelectorDevice\fP \fI(str)\fP \- NXSRecSelector tango device if more installed, otherwise first one found
|
|
330
334
|
.IP \(bu 2
|
|
331
335
|
\fBNXSAppendSciCatDataset\fP \fI(bool)\fP \- append scan name to scicat dataset list file, default: \fBFalse\fP
|
|
@@ -349,6 +353,8 @@ The NeXus file recorder uses the following sardana environment variables
|
|
|
349
353
|
\fBScicatMeasurements\fP \fI(dict)\fP \- a dictionary of measurement names indexed by \fBScanDir\fP and used by \fBscingestor\fP, default: \fB{}\fP
|
|
350
354
|
.IP \(bu 2
|
|
351
355
|
\fBCreateMeasurementFile\fP \fI(bool)\fP \- create a measurement file with its filename releated to \fBScicatMeasurements\fP or \fBScanFile\fP, default: \fBFalse\fP
|
|
356
|
+
.IP \(bu 2
|
|
357
|
+
\fBNeXusSkipAcquisitionModes\fP \fI(list)\fP \- a list of strategy modes for which acquisition is skip
|
|
352
358
|
.UNINDENT
|
|
353
359
|
.sp
|
|
354
360
|
Contents:
|
{sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0/sardana_nxsrecorder.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sardana-nxsrecorder
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.23.0
|
|
4
4
|
Summary: NeXus Sardana Scan Recorder
|
|
5
5
|
Home-page: https://github.com/nexdatas/sardana-nxs-filerecorder/
|
|
6
6
|
Author: Jan Kotanski
|
|
@@ -234,6 +234,8 @@ The NeXus file recorder uses the following sardana environment variables
|
|
|
234
234
|
|
|
235
235
|
* **ActiveMntGrp** *(str)* - active measurement group
|
|
236
236
|
* **ScanID** *(int)* - the last scan identifier number, default: ``-1``
|
|
237
|
+
* **ScanDir** *(str)* - the scan directory
|
|
238
|
+
* **ScanFile** *(list)* - a list of scan files
|
|
237
239
|
* **NeXusSelectorDevice** *(str)* - NXSRecSelector tango device if more installed, otherwise first one found
|
|
238
240
|
|
|
239
241
|
* **NXSAppendSciCatDataset** *(bool)* - append scan name to scicat dataset list file, default: ``False``
|
|
@@ -247,4 +249,5 @@ The NeXus file recorder uses the following sardana environment variables
|
|
|
247
249
|
* **MetadataScript** *(str)* - a python module file name containing ``main()`` which provides a dictionary with user metadata stored in the INIT mode, default: ``""``
|
|
248
250
|
* **ScicatMeasurements** *(dict)* - a dictionary of measurement names indexed by ``ScanDir`` and used by ``scingestor``, default: ``{}``
|
|
249
251
|
* **CreateMeasurementFile** *(bool)* - create a measurement file with its filename releated to ``ScicatMeasurements`` or ``ScanFile``, default: ``False``
|
|
252
|
+
* **NeXusSkipAcquisitionModes** *(list)* - a list of strategy modes for which acquisition is skip
|
|
250
253
|
|
|
@@ -155,6 +155,9 @@ class NXS_FileRecorder(BaseFileRecorder):
|
|
|
155
155
|
#: (:obj:`dict` <:obj:`str` , :obj:`str`>) NeXus configuration
|
|
156
156
|
self.__conf = {}
|
|
157
157
|
|
|
158
|
+
#: (:obj:`list` <:obj:`str`>) skip Acquisition Modes
|
|
159
|
+
self.skipAcquisitionModes = []
|
|
160
|
+
|
|
158
161
|
#: (:obj:`dict` <:obj:`str` , `any`>) User data
|
|
159
162
|
self.__udata = None
|
|
160
163
|
|
|
@@ -1020,6 +1023,10 @@ class NXS_FileRecorder(BaseFileRecorder):
|
|
|
1020
1023
|
# self.debug('START_DATA: %s' % str(envRec))
|
|
1021
1024
|
|
|
1022
1025
|
self.__nexuswriter_device.jsonrecord = rec
|
|
1026
|
+
self.skipAcquisitionModes = self.__skipAcquisitionModes()
|
|
1027
|
+
if "INIT" in self.skipAcquisitionModes:
|
|
1028
|
+
self.__nexuswriter_device.skipAcquisition = True
|
|
1029
|
+
|
|
1023
1030
|
self.__command(self.__nexuswriter_device, "openEntry")
|
|
1024
1031
|
except Exception:
|
|
1025
1032
|
self.__removeDynamicComponent()
|
|
@@ -1106,6 +1113,8 @@ class NXS_FileRecorder(BaseFileRecorder):
|
|
|
1106
1113
|
rec = json.dumps(
|
|
1107
1114
|
envrecord, cls=NXS_FileRecorder.numpyEncoder)
|
|
1108
1115
|
self.__nexuswriter_device.jsonrecord = rec
|
|
1116
|
+
if "STEP" in self.skipAcquisitionModes:
|
|
1117
|
+
self.__nexuswriter_device.skipAcquisition = True
|
|
1109
1118
|
|
|
1110
1119
|
# self.debug('DATA: {"data":%s}' % json.dumps(
|
|
1111
1120
|
# record.data,
|
|
@@ -1174,6 +1183,8 @@ class NXS_FileRecorder(BaseFileRecorder):
|
|
|
1174
1183
|
rec = json.dumps(
|
|
1175
1184
|
envrecord, cls=NXS_FileRecorder.numpyEncoder)
|
|
1176
1185
|
self.__nexuswriter_device.jsonrecord = rec
|
|
1186
|
+
if "FINAL" in self.skipAcquisitionModes:
|
|
1187
|
+
self.__nexuswriter_device.skipAcquisition = True
|
|
1177
1188
|
self.__command(self.__nexuswriter_device, "closeEntry")
|
|
1178
1189
|
self.__command(self.__nexuswriter_device, "closeFile")
|
|
1179
1190
|
except Exception:
|
|
@@ -1220,6 +1231,19 @@ class NXS_FileRecorder(BaseFileRecorder):
|
|
|
1220
1231
|
beamtimeid = self.beamtime_id(bmtfpath, bmtfprefix, bmtfext)
|
|
1221
1232
|
return beamtimeid or "00000000"
|
|
1222
1233
|
|
|
1234
|
+
def __skipAcquisitionModes(self):
|
|
1235
|
+
""" find skip acquisition modes
|
|
1236
|
+
"""
|
|
1237
|
+
try:
|
|
1238
|
+
skip_acq = self.__macro().getEnv('NeXusSkipAcquisitionModes')
|
|
1239
|
+
except Exception:
|
|
1240
|
+
skip_acq = []
|
|
1241
|
+
if isinstance(skip_acq, str):
|
|
1242
|
+
skip_acq = re.split(r"[-;,.\s]\s*", skip_acq)
|
|
1243
|
+
if skip_acq:
|
|
1244
|
+
self.debug('Skip Acquisition Modes: %s' % str(skip_acq))
|
|
1245
|
+
return skip_acq
|
|
1246
|
+
|
|
1223
1247
|
def __rawfilename(self, serial):
|
|
1224
1248
|
""" find scan name
|
|
1225
1249
|
"""
|
|
@@ -1309,6 +1333,8 @@ class NXS_FileRecorder(BaseFileRecorder):
|
|
|
1309
1333
|
sid = self.__vars["vars"]["scan_id"]
|
|
1310
1334
|
sname = "%s::/%s_%05i;%s_%05i" % (
|
|
1311
1335
|
scanname, entryname, sid, scanname, sid)
|
|
1336
|
+
if "INIT" in self.skipAcquisitionModes:
|
|
1337
|
+
sname = "%s:%s" % (sname, time.time())
|
|
1312
1338
|
|
|
1313
1339
|
# auto grouping
|
|
1314
1340
|
grouping = bool(self.__getEnvVar('SciCatAutoGrouping', False))
|
|
@@ -1370,7 +1396,6 @@ class NXS_FileRecorder(BaseFileRecorder):
|
|
|
1370
1396
|
"{ScanID" not in self.__raw_filename:
|
|
1371
1397
|
sname = sname + ("_%05i" % sid)
|
|
1372
1398
|
entryname = entryname + ("_%05i" % sid)
|
|
1373
|
-
|
|
1374
1399
|
mntname = scanname
|
|
1375
1400
|
if fdir in sm.keys() and sm[fdir]:
|
|
1376
1401
|
mntname = sm[fdir]
|
|
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
|
{sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/sardana_nxsrecorder.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/sardana_nxsrecorder.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/sardana_nxsrecorder.egg-info/requires.txt
RENAMED
|
File without changes
|
{sardana-nxsrecorder-3.22.0 → sardana-nxsrecorder-3.23.0}/sardana_nxsrecorder.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|