sardana-nxsrecorder 3.28.0__tar.gz → 3.29.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.28.0 → sardana-nxsrecorder-3.29.0}/ChangeLog +8 -0
- {sardana-nxsrecorder-3.28.0/sardana_nxsrecorder.egg-info → sardana-nxsrecorder-3.29.0}/PKG-INFO +12 -2
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/README.rst +11 -1
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/man/sardananxsrecorder.1 +24 -15
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0/sardana_nxsrecorder.egg-info}/PKG-INFO +12 -2
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/sardananxsrecorder/__init__.py +1 -1
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/sardananxsrecorder/nxsrecorder.py +19 -11
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/.ci/debian10_py2/Dockerfile +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/.ci/debian10_py3/Dockerfile +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/.ci/debian8_py2/Dockerfile +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/.ci/debian8_py3/Dockerfile +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/.ci/debian9_py2/Dockerfile +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/.ci/debian9_py3/Dockerfile +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/.ci/install.sh +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/.ci/run.sh +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/.ci/ubuntu16.04_py2/Dockerfile +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/.ci/ubuntu16.04_py3/Dockerfile +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/.ci/ubuntu18.04_py2/Dockerfile +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/.ci/ubuntu18.04_py3/Dockerfile +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/.ci/ubuntu20.04_py3/Dockerfile +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/.flake8 +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/.github/workflows/tests.yml +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/.gitignore +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/COPYRIGHT +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/MANIFEST.in +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/doc/Makefile +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/doc/conf.py +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/doc/index.rst +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/doc/make.bat +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/doc/sardananxsrecorder.rst +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/sardana_nxsrecorder.egg-info/SOURCES.txt +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/sardana_nxsrecorder.egg-info/dependency_links.txt +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/sardana_nxsrecorder.egg-info/not-zip-safe +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/sardana_nxsrecorder.egg-info/requires.txt +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/sardana_nxsrecorder.egg-info/top_level.txt +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/setup.cfg +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/setup.py +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/test/__init__.py +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/test/__main__.py +0 -0
- {sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/test/main.py +0 -0
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
2024-07-19 Jan Kotanski <jankotan@gmail.com>
|
|
2
|
+
* add ScanNamesNoMetadata and ScanNamesNoGrouping variables (#145)
|
|
3
|
+
* tagged as 3.29.0
|
|
4
|
+
|
|
5
|
+
2024-07-15 Jan Kotanski <jankotan@gmail.com>
|
|
6
|
+
* do not restart the measurement in the grouping mode (#142)
|
|
7
|
+
* tagged as 3.28.1
|
|
8
|
+
|
|
1
9
|
2024-07-15 Jan Kotanski <jankotan@gmail.com>
|
|
2
10
|
* fix ScanFileInScanNameDir variable name to ScanNames (#138)
|
|
3
11
|
* fix support for ScanNames=False mode (#138)
|
{sardana-nxsrecorder-3.28.0/sardana_nxsrecorder.egg-info → sardana-nxsrecorder-3.29.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.29.0
|
|
4
4
|
Summary: NeXus Sardana Scan Recorder
|
|
5
5
|
Home-page: https://github.com/nexdatas/sardana-nxs-filerecorder/
|
|
6
6
|
Author: Jan Kotanski
|
|
@@ -252,4 +252,14 @@ The NeXus file recorder uses the following sardana environment variables
|
|
|
252
252
|
* **NeXusWriterProperties** *(dict)* - a dictionary of TangoDataWriter (NXSDataWriter) properties (starting with a small letter)
|
|
253
253
|
* **NeXusMeshScanID** *(int)* - ScanID used for composed scans e.g. mesh scan combined from many linear scans
|
|
254
254
|
* **NeXusWriterModes** *(list)* - a list of strategy modes e.g. ``NOINIT``, ``NOSTEP``, ``NOFINAL``, ``MESH``, ``VDS`` separated by commas
|
|
255
|
-
|
|
255
|
+
* **ScanNames** *(bool)* - special mode of using ScanName directories i.e.
|
|
256
|
+
|
|
257
|
+
* ``True``: the master file in the ScanName directory,
|
|
258
|
+
|
|
259
|
+
* ``False``: the master file in the grouping ScanName directory (e.g. without ScanID),
|
|
260
|
+
|
|
261
|
+
* ``None`` (or undefined): standard mode where the master files are outside the ScanName directory
|
|
262
|
+
|
|
263
|
+
* **ScanNamesNoGrouping** *(bool)* - do not perform grouping when ``ScanNames`` is ``False``
|
|
264
|
+
* **ScanNamesNoMetadata** *(bool)* - do not perform master file metadata ingestion when ``ScanNames`` is ``False``
|
|
265
|
+
|
|
@@ -227,4 +227,14 @@ The NeXus file recorder uses the following sardana environment variables
|
|
|
227
227
|
* **NeXusWriterProperties** *(dict)* - a dictionary of TangoDataWriter (NXSDataWriter) properties (starting with a small letter)
|
|
228
228
|
* **NeXusMeshScanID** *(int)* - ScanID used for composed scans e.g. mesh scan combined from many linear scans
|
|
229
229
|
* **NeXusWriterModes** *(list)* - a list of strategy modes e.g. ``NOINIT``, ``NOSTEP``, ``NOFINAL``, ``MESH``, ``VDS`` separated by commas
|
|
230
|
-
|
|
230
|
+
* **ScanNames** *(bool)* - special mode of using ScanName directories i.e.
|
|
231
|
+
|
|
232
|
+
* ``True``: the master file in the ScanName directory,
|
|
233
|
+
|
|
234
|
+
* ``False``: the master file in the grouping ScanName directory (e.g. without ScanID),
|
|
235
|
+
|
|
236
|
+
* ``None`` (or undefined): standard mode where the master files are outside the ScanName directory
|
|
237
|
+
|
|
238
|
+
* **ScanNamesNoGrouping** *(bool)* - do not perform grouping when ``ScanNames`` is ``False``
|
|
239
|
+
* **ScanNamesNoMetadata** *(bool)* - do not perform master file metadata ingestion when ``ScanNames`` is ``False``
|
|
240
|
+
|
|
@@ -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" "Jul
|
|
30
|
+
.TH "SARDANANXSRECORDER" "1" "Jul 19, 2024" "3.29" "Sardana NeXus Recorder"
|
|
31
31
|
.SH NAME
|
|
32
32
|
sardananxsrecorder \- sardananxsrecorder Documentation
|
|
33
33
|
.sp
|
|
@@ -359,6 +359,15 @@ The NeXus file recorder uses the following sardana environment variables
|
|
|
359
359
|
\fBNeXusMeshScanID\fP \fI(int)\fP \- ScanID used for composed scans e.g. mesh scan combined from many linear scans
|
|
360
360
|
.IP \(bu 2
|
|
361
361
|
\fBNeXusWriterModes\fP \fI(list)\fP \- a list of strategy modes e.g. \fBNOINIT\fP, \fBNOSTEP\fP, \fBNOFINAL\fP, \fBMESH\fP, \fBVDS\fP separated by commas
|
|
362
|
+
.IP \(bu 2
|
|
363
|
+
\fBScanNames\fP \fI(bool)\fP \- special mode of using ScanName directories i.e.
|
|
364
|
+
* \fBTrue\fP: the master file in ScanName directory,
|
|
365
|
+
* \fBFalse\fP: Themaster file in grouping ScanName directory,
|
|
366
|
+
* \fBNone\fP (or undefined): standard mode where the master files are outside ScanName directory
|
|
367
|
+
.IP \(bu 2
|
|
368
|
+
\fBScanNamesNoGrouping\fP \fI(bool)\fP \- do not perform grouping when \fBScanNames\fP is \fBFalse\fP
|
|
369
|
+
.IP \(bu 2
|
|
370
|
+
\fBScanNamesNoMetadata\fP \fI(bool)\fP \- do not perform master file metadata ingestion when \fBScanNames\fP is \fBFalse\fP
|
|
362
371
|
.UNINDENT
|
|
363
372
|
.sp
|
|
364
373
|
Contents:
|
|
@@ -380,9 +389,9 @@ constructor
|
|
|
380
389
|
.B Parameters
|
|
381
390
|
.INDENT 7.0
|
|
382
391
|
.IP \(bu 2
|
|
383
|
-
\fBfilename\fP (\fI\%str\fP)
|
|
392
|
+
\fBfilename\fP (\fI\%str\fP) \-\- ScanFile name
|
|
384
393
|
.IP \(bu 2
|
|
385
|
-
\fBmacro\fP (\fI\%sardana.macroserver.macro.Macro\fP)
|
|
394
|
+
\fBmacro\fP (\fI\%sardana.macroserver.macro.Macro\fP) \-\- macro object
|
|
386
395
|
.UNINDENT
|
|
387
396
|
.UNINDENT
|
|
388
397
|
.INDENT 7.0
|
|
@@ -394,13 +403,13 @@ adds custom data to configuration variables, i.e. from macros
|
|
|
394
403
|
.B Parameters
|
|
395
404
|
.INDENT 7.0
|
|
396
405
|
.IP \(bu 2
|
|
397
|
-
\fBvalue\fP (\fIany\fP)
|
|
406
|
+
\fBvalue\fP (\fIany\fP) \-\- variable value
|
|
398
407
|
.IP \(bu 2
|
|
399
|
-
\fBname\fP (\fI\%str\fP)
|
|
408
|
+
\fBname\fP (\fI\%str\fP) \-\- variable name
|
|
400
409
|
.IP \(bu 2
|
|
401
|
-
\fBgroup\fP (\fI\%str\fP)
|
|
410
|
+
\fBgroup\fP (\fI\%str\fP) \-\- variable group inside variable dictionary
|
|
402
411
|
.IP \(bu 2
|
|
403
|
-
\fBremove\fP (\fI\%bool\fP)
|
|
412
|
+
\fBremove\fP (\fI\%bool\fP) \-\- if True variable will be removed
|
|
404
413
|
.UNINDENT
|
|
405
414
|
.UNINDENT
|
|
406
415
|
.UNINDENT
|
|
@@ -415,7 +424,7 @@ and closes the nexus file
|
|
|
415
424
|
.INDENT 7.0
|
|
416
425
|
.TP
|
|
417
426
|
.B Parameters
|
|
418
|
-
\fBrecordlist\fP (\fBsardana.macroserver.scan.scandata.RecordList\fP)
|
|
427
|
+
\fBrecordlist\fP (\fBsardana.macroserver.scan.scandata.RecordList\fP) \-\- sardana record list
|
|
419
428
|
.UNINDENT
|
|
420
429
|
.UNINDENT
|
|
421
430
|
.INDENT 7.0
|
|
@@ -429,7 +438,7 @@ and records in INIT mode
|
|
|
429
438
|
.INDENT 7.0
|
|
430
439
|
.TP
|
|
431
440
|
.B Parameters
|
|
432
|
-
\fBrecordlist\fP (\fBsardana.macroserver.scan.scandata.RecordList\fP)
|
|
441
|
+
\fBrecordlist\fP (\fBsardana.macroserver.scan.scandata.RecordList\fP) \-\- sardana record list
|
|
433
442
|
.UNINDENT
|
|
434
443
|
.UNINDENT
|
|
435
444
|
.INDENT 7.0
|
|
@@ -443,7 +452,7 @@ and records in INIT mode
|
|
|
443
452
|
.INDENT 7.0
|
|
444
453
|
.TP
|
|
445
454
|
.B Parameters
|
|
446
|
-
\fBrecord\fP (\fBsardana.macroserver.scan.scandata.Record\fP)
|
|
455
|
+
\fBrecord\fP (\fBsardana.macroserver.scan.scandata.Record\fP) \-\- sardana record list
|
|
447
456
|
.UNINDENT
|
|
448
457
|
.UNINDENT
|
|
449
458
|
.INDENT 7.0
|
|
@@ -501,12 +510,12 @@ indent level. An indent level of 0 will only insert newlines.
|
|
|
501
510
|
None is the most compact representation.
|
|
502
511
|
.sp
|
|
503
512
|
If specified, separators should be an (item_separator, key_separator)
|
|
504
|
-
tuple. The default is (
|
|
505
|
-
(
|
|
506
|
-
you should specify (
|
|
513
|
+
tuple. The default is (\(aq, \(aq, \(aq: \(aq) if \fIindent\fP is \fBNone\fP and
|
|
514
|
+
(\(aq,\(aq, \(aq: \(aq) otherwise. To get the most compact JSON representation,
|
|
515
|
+
you should specify (\(aq,\(aq, \(aq:\(aq) to eliminate whitespace.
|
|
507
516
|
.sp
|
|
508
517
|
If specified, default is a function that gets called for objects
|
|
509
|
-
that can
|
|
518
|
+
that can\(aqt otherwise be serialized. It should return a JSON encodable
|
|
510
519
|
version of the object or raise a \fBTypeError\fP\&.
|
|
511
520
|
.INDENT 7.0
|
|
512
521
|
.TP
|
|
@@ -515,7 +524,7 @@ default encoder
|
|
|
515
524
|
.INDENT 7.0
|
|
516
525
|
.TP
|
|
517
526
|
.B Parameters
|
|
518
|
-
\fBobj\fP (\fI\%object\fP or \fIany\fP)
|
|
527
|
+
\fBobj\fP (\fI\%object\fP or \fIany\fP) \-\- numpy array object
|
|
519
528
|
.UNINDENT
|
|
520
529
|
.UNINDENT
|
|
521
530
|
.UNINDENT
|
{sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.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.29.0
|
|
4
4
|
Summary: NeXus Sardana Scan Recorder
|
|
5
5
|
Home-page: https://github.com/nexdatas/sardana-nxs-filerecorder/
|
|
6
6
|
Author: Jan Kotanski
|
|
@@ -252,4 +252,14 @@ The NeXus file recorder uses the following sardana environment variables
|
|
|
252
252
|
* **NeXusWriterProperties** *(dict)* - a dictionary of TangoDataWriter (NXSDataWriter) properties (starting with a small letter)
|
|
253
253
|
* **NeXusMeshScanID** *(int)* - ScanID used for composed scans e.g. mesh scan combined from many linear scans
|
|
254
254
|
* **NeXusWriterModes** *(list)* - a list of strategy modes e.g. ``NOINIT``, ``NOSTEP``, ``NOFINAL``, ``MESH``, ``VDS`` separated by commas
|
|
255
|
-
|
|
255
|
+
* **ScanNames** *(bool)* - special mode of using ScanName directories i.e.
|
|
256
|
+
|
|
257
|
+
* ``True``: the master file in the ScanName directory,
|
|
258
|
+
|
|
259
|
+
* ``False``: the master file in the grouping ScanName directory (e.g. without ScanID),
|
|
260
|
+
|
|
261
|
+
* ``None`` (or undefined): standard mode where the master files are outside the ScanName directory
|
|
262
|
+
|
|
263
|
+
* **ScanNamesNoGrouping** *(bool)* - do not perform grouping when ``ScanNames`` is ``False``
|
|
264
|
+
* **ScanNamesNoMetadata** *(bool)* - do not perform master file metadata ingestion when ``ScanNames`` is ``False``
|
|
265
|
+
|
|
@@ -1348,6 +1348,8 @@ class NXS_FileRecorder(BaseFileRecorder):
|
|
|
1348
1348
|
sid = self.__serial
|
|
1349
1349
|
fdir, fname = os.path.split(self.filename)
|
|
1350
1350
|
snmode = self.__getEnvVar("ScanNames", None)
|
|
1351
|
+
nometa = self.__getEnvVar("ScanNamesNoMetadata", False)
|
|
1352
|
+
nogrouping = self.__getEnvVar("ScanNamesNoGrouping", False)
|
|
1351
1353
|
appendentry = self.__getConfVar("AppendEntry", False)
|
|
1352
1354
|
pdir = None
|
|
1353
1355
|
if snmode is not None:
|
|
@@ -1406,22 +1408,28 @@ class NXS_FileRecorder(BaseFileRecorder):
|
|
|
1406
1408
|
if fdir in sm.keys():
|
|
1407
1409
|
cgrp = sm[fdir]
|
|
1408
1410
|
if cgrp != scanname:
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1411
|
+
if not nogrouping and not nometa:
|
|
1412
|
+
commands.append("__command__ stop")
|
|
1413
|
+
commands.append("%s:%s" % (cgrp, time.time()))
|
|
1414
|
+
commands.append("__command__ start %s" % scanname)
|
|
1412
1415
|
else:
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1416
|
+
if not nogrouping and not nometa:
|
|
1417
|
+
commands.append("__command__ start %s" % scanname)
|
|
1418
|
+
if not nometa:
|
|
1419
|
+
commands.append(sname)
|
|
1420
|
+
if not nogrouping and not nometa:
|
|
1421
|
+
commands.append("__command__ stop")
|
|
1422
|
+
if not nogrouping:
|
|
1423
|
+
commands.append("%s:%s" % (scanname, time.time()))
|
|
1418
1424
|
sname = "\n".join(commands)
|
|
1419
1425
|
|
|
1420
|
-
|
|
1426
|
+
if not nogrouping and not nometa:
|
|
1427
|
+
sm[fdir] = scanname
|
|
1421
1428
|
self.__env['SciCatMeasurements'] = sm
|
|
1422
1429
|
|
|
1423
|
-
|
|
1424
|
-
|
|
1430
|
+
if sname:
|
|
1431
|
+
with open(dslfile, "a+") as fl:
|
|
1432
|
+
fl.write("\n%s" % sname)
|
|
1425
1433
|
|
|
1426
1434
|
def __createMeasurementFile(self):
|
|
1427
1435
|
""" create measurement 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
|
{sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/sardana_nxsrecorder.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/sardana_nxsrecorder.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.0}/sardana_nxsrecorder.egg-info/requires.txt
RENAMED
|
File without changes
|
{sardana-nxsrecorder-3.28.0 → sardana-nxsrecorder-3.29.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
|