sardana-nxsrecorder 3.26.1__tar.gz → 3.28.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.26.1 → sardana-nxsrecorder-3.28.0}/ChangeLog +9 -0
- {sardana-nxsrecorder-3.26.1/sardana_nxsrecorder.egg-info → sardana-nxsrecorder-3.28.0}/PKG-INFO +1 -1
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/man/sardananxsrecorder.1 +15 -15
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0/sardana_nxsrecorder.egg-info}/PKG-INFO +1 -1
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/sardananxsrecorder/__init__.py +1 -1
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/sardananxsrecorder/nxsrecorder.py +29 -5
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/.ci/debian10_py2/Dockerfile +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/.ci/debian10_py3/Dockerfile +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/.ci/debian8_py2/Dockerfile +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/.ci/debian8_py3/Dockerfile +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/.ci/debian9_py2/Dockerfile +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/.ci/debian9_py3/Dockerfile +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/.ci/install.sh +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/.ci/run.sh +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/.ci/ubuntu16.04_py2/Dockerfile +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/.ci/ubuntu16.04_py3/Dockerfile +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/.ci/ubuntu18.04_py2/Dockerfile +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/.ci/ubuntu18.04_py3/Dockerfile +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/.ci/ubuntu20.04_py3/Dockerfile +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/.flake8 +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/.github/workflows/tests.yml +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/.gitignore +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/COPYRIGHT +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/MANIFEST.in +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/README.rst +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/doc/Makefile +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/doc/conf.py +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/doc/index.rst +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/doc/make.bat +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/doc/sardananxsrecorder.rst +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/sardana_nxsrecorder.egg-info/SOURCES.txt +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/sardana_nxsrecorder.egg-info/dependency_links.txt +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/sardana_nxsrecorder.egg-info/not-zip-safe +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/sardana_nxsrecorder.egg-info/requires.txt +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/sardana_nxsrecorder.egg-info/top_level.txt +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/setup.cfg +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/setup.py +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/test/__init__.py +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/test/__main__.py +0 -0
- {sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/test/main.py +0 -0
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
2024-07-15 Jan Kotanski <jankotan@gmail.com>
|
|
2
|
+
* fix ScanFileInScanNameDir variable name to ScanNames (#138)
|
|
3
|
+
* fix support for ScanNames=False mode (#138)
|
|
4
|
+
* tagged as 3.28.0
|
|
5
|
+
|
|
6
|
+
2024-07-11 Jan Kotanski <jankotan@gmail.com>
|
|
7
|
+
* add support for ScanFileInScanNameDir variable (#135)
|
|
8
|
+
* tagged as 3.27.0
|
|
9
|
+
|
|
1
10
|
2024-07-03 Jan Kotanski <jankotan@gmail.com>
|
|
2
11
|
* fix for summer time parsing (#132)
|
|
3
12
|
* tagged as 3.26.1
|
|
@@ -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" "
|
|
30
|
+
.TH "SARDANANXSRECORDER" "1" "Jul 14, 2024" "3.28" "Sardana NeXus Recorder"
|
|
31
31
|
.SH NAME
|
|
32
32
|
sardananxsrecorder \- sardananxsrecorder Documentation
|
|
33
33
|
.sp
|
|
@@ -380,9 +380,9 @@ constructor
|
|
|
380
380
|
.B Parameters
|
|
381
381
|
.INDENT 7.0
|
|
382
382
|
.IP \(bu 2
|
|
383
|
-
\fBfilename\fP (\fI\%str\fP)
|
|
383
|
+
\fBfilename\fP (\fI\%str\fP) – ScanFile name
|
|
384
384
|
.IP \(bu 2
|
|
385
|
-
\fBmacro\fP (\fI\%sardana.macroserver.macro.Macro\fP)
|
|
385
|
+
\fBmacro\fP (\fI\%sardana.macroserver.macro.Macro\fP) – macro object
|
|
386
386
|
.UNINDENT
|
|
387
387
|
.UNINDENT
|
|
388
388
|
.INDENT 7.0
|
|
@@ -394,13 +394,13 @@ adds custom data to configuration variables, i.e. from macros
|
|
|
394
394
|
.B Parameters
|
|
395
395
|
.INDENT 7.0
|
|
396
396
|
.IP \(bu 2
|
|
397
|
-
\fBvalue\fP (\fIany\fP)
|
|
397
|
+
\fBvalue\fP (\fIany\fP) – variable value
|
|
398
398
|
.IP \(bu 2
|
|
399
|
-
\fBname\fP (\fI\%str\fP)
|
|
399
|
+
\fBname\fP (\fI\%str\fP) – variable name
|
|
400
400
|
.IP \(bu 2
|
|
401
|
-
\fBgroup\fP (\fI\%str\fP)
|
|
401
|
+
\fBgroup\fP (\fI\%str\fP) – variable group inside variable dictionary
|
|
402
402
|
.IP \(bu 2
|
|
403
|
-
\fBremove\fP (\fI\%bool\fP)
|
|
403
|
+
\fBremove\fP (\fI\%bool\fP) – if True variable will be removed
|
|
404
404
|
.UNINDENT
|
|
405
405
|
.UNINDENT
|
|
406
406
|
.UNINDENT
|
|
@@ -415,7 +415,7 @@ and closes the nexus file
|
|
|
415
415
|
.INDENT 7.0
|
|
416
416
|
.TP
|
|
417
417
|
.B Parameters
|
|
418
|
-
\fBrecordlist\fP (\fBsardana.macroserver.scan.scandata.RecordList\fP)
|
|
418
|
+
\fBrecordlist\fP (\fBsardana.macroserver.scan.scandata.RecordList\fP) – sardana record list
|
|
419
419
|
.UNINDENT
|
|
420
420
|
.UNINDENT
|
|
421
421
|
.INDENT 7.0
|
|
@@ -429,7 +429,7 @@ and records in INIT mode
|
|
|
429
429
|
.INDENT 7.0
|
|
430
430
|
.TP
|
|
431
431
|
.B Parameters
|
|
432
|
-
\fBrecordlist\fP (\fBsardana.macroserver.scan.scandata.RecordList\fP)
|
|
432
|
+
\fBrecordlist\fP (\fBsardana.macroserver.scan.scandata.RecordList\fP) – sardana record list
|
|
433
433
|
.UNINDENT
|
|
434
434
|
.UNINDENT
|
|
435
435
|
.INDENT 7.0
|
|
@@ -443,7 +443,7 @@ and records in INIT mode
|
|
|
443
443
|
.INDENT 7.0
|
|
444
444
|
.TP
|
|
445
445
|
.B Parameters
|
|
446
|
-
\fBrecord\fP (\fBsardana.macroserver.scan.scandata.Record\fP)
|
|
446
|
+
\fBrecord\fP (\fBsardana.macroserver.scan.scandata.Record\fP) – sardana record list
|
|
447
447
|
.UNINDENT
|
|
448
448
|
.UNINDENT
|
|
449
449
|
.INDENT 7.0
|
|
@@ -501,12 +501,12 @@ indent level. An indent level of 0 will only insert newlines.
|
|
|
501
501
|
None is the most compact representation.
|
|
502
502
|
.sp
|
|
503
503
|
If specified, separators should be an (item_separator, key_separator)
|
|
504
|
-
tuple. The default is (
|
|
505
|
-
(
|
|
506
|
-
you should specify (
|
|
504
|
+
tuple. The default is (’, ‘, ‘: ‘) if \fIindent\fP is \fBNone\fP and
|
|
505
|
+
(‘,’, ‘: ‘) otherwise. To get the most compact JSON representation,
|
|
506
|
+
you should specify (‘,’, ‘:’) to eliminate whitespace.
|
|
507
507
|
.sp
|
|
508
508
|
If specified, default is a function that gets called for objects
|
|
509
|
-
that can
|
|
509
|
+
that can’t otherwise be serialized. It should return a JSON encodable
|
|
510
510
|
version of the object or raise a \fBTypeError\fP\&.
|
|
511
511
|
.INDENT 7.0
|
|
512
512
|
.TP
|
|
@@ -515,7 +515,7 @@ default encoder
|
|
|
515
515
|
.INDENT 7.0
|
|
516
516
|
.TP
|
|
517
517
|
.B Parameters
|
|
518
|
-
\fBobj\fP (\fI\%object\fP or \fIany\fP)
|
|
518
|
+
\fBobj\fP (\fI\%object\fP or \fIany\fP) – numpy array object
|
|
519
519
|
.UNINDENT
|
|
520
520
|
.UNINDENT
|
|
521
521
|
.UNINDENT
|
|
@@ -1316,11 +1316,13 @@ class NXS_FileRecorder(BaseFileRecorder):
|
|
|
1316
1316
|
bfilename = bfilename or self.__base_filename
|
|
1317
1317
|
return bfilename
|
|
1318
1318
|
|
|
1319
|
-
def __scanname(self, serial):
|
|
1319
|
+
def __scanname(self, serial, default=None):
|
|
1320
1320
|
""" find scan name
|
|
1321
1321
|
"""
|
|
1322
1322
|
if not self.__raw_filename:
|
|
1323
1323
|
self.__raw_filename = self.__rawfilename(serial)
|
|
1324
|
+
if default:
|
|
1325
|
+
return default
|
|
1324
1326
|
bfilename = self.__raw_filename
|
|
1325
1327
|
_, bfname = os.path.split(bfilename)
|
|
1326
1328
|
if bfname.endswith(".tmp"):
|
|
@@ -1345,6 +1347,14 @@ class NXS_FileRecorder(BaseFileRecorder):
|
|
|
1345
1347
|
|
|
1346
1348
|
sid = self.__serial
|
|
1347
1349
|
fdir, fname = os.path.split(self.filename)
|
|
1350
|
+
snmode = self.__getEnvVar("ScanNames", None)
|
|
1351
|
+
appendentry = self.__getConfVar("AppendEntry", False)
|
|
1352
|
+
pdir = None
|
|
1353
|
+
if snmode is not None:
|
|
1354
|
+
if bool(snmode):
|
|
1355
|
+
fdir = os.path.dirname(os.path.abspath(fdir))
|
|
1356
|
+
elif appendentry is False:
|
|
1357
|
+
fdir, pdir = os.path.split(os.path.abspath(fdir))
|
|
1348
1358
|
sname, fext = os.path.splitext(fname)
|
|
1349
1359
|
beamtimeid = self.beamtimeid()
|
|
1350
1360
|
defprefix = "scicat-datasets-"
|
|
@@ -1365,7 +1375,7 @@ class NXS_FileRecorder(BaseFileRecorder):
|
|
|
1365
1375
|
if isinstance(variables, dict) and "entryname" in variables:
|
|
1366
1376
|
entryname = variables["entryname"]
|
|
1367
1377
|
|
|
1368
|
-
scanname = self.__scanname(sid)
|
|
1378
|
+
scanname = self.__scanname(sid, pdir)
|
|
1369
1379
|
# _, bfname = os.path.split(self.__base_filename)
|
|
1370
1380
|
# try:
|
|
1371
1381
|
# scanname, _ = os.path.splitext(bfname % "")
|
|
@@ -1378,13 +1388,15 @@ class NXS_FileRecorder(BaseFileRecorder):
|
|
|
1378
1388
|
sid = self.__serial
|
|
1379
1389
|
sname = "%s::/%s_%05i;%s_%05i" % (
|
|
1380
1390
|
scanname, entryname, sid, scanname, sid)
|
|
1391
|
+
if pdir:
|
|
1392
|
+
sname = "%s/%s" % (pdir, sname)
|
|
1381
1393
|
if "NOINIT" in self.writerModes:
|
|
1382
1394
|
sname = "%s:%s" % (sname, time.time())
|
|
1383
1395
|
|
|
1384
1396
|
# auto grouping
|
|
1385
1397
|
grouping = bool(self.__getEnvVar('SciCatAutoGrouping', False))
|
|
1386
1398
|
|
|
1387
|
-
if grouping:
|
|
1399
|
+
if grouping or pdir:
|
|
1388
1400
|
commands = []
|
|
1389
1401
|
try:
|
|
1390
1402
|
sm = dict(self.__getEnvVar('SciCatMeasurements', {}))
|
|
@@ -1416,10 +1428,18 @@ class NXS_FileRecorder(BaseFileRecorder):
|
|
|
1416
1428
|
|
|
1417
1429
|
sid = self.__serial
|
|
1418
1430
|
fdir, fname = os.path.split(self.filename)
|
|
1431
|
+
pdir = None
|
|
1432
|
+
snmode = self.__getEnvVar("ScanNames", None)
|
|
1433
|
+
appendentry = self.__getConfVar("AppendEntry", False)
|
|
1434
|
+
if snmode is not None:
|
|
1435
|
+
if bool(snmode):
|
|
1436
|
+
fdir = os.path.dirname(os.path.abspath(fdir))
|
|
1437
|
+
elif appendentry is False:
|
|
1438
|
+
fdir, pdir = os.path.split(os.path.abspath(fdir))
|
|
1419
1439
|
sname, fext = os.path.splitext(fname)
|
|
1420
1440
|
# beamtimeid = self.beamtimeid()
|
|
1421
1441
|
|
|
1422
|
-
scanname = self.__scanname(sid)
|
|
1442
|
+
scanname = self.__scanname(sid, pdir)
|
|
1423
1443
|
# _, bfname = os.path.split(self.__base_filename)
|
|
1424
1444
|
# try:
|
|
1425
1445
|
# scanname, _ = os.path.splitext(bfname % "")
|
|
@@ -1454,7 +1474,11 @@ class NXS_FileRecorder(BaseFileRecorder):
|
|
|
1454
1474
|
fl = h5writer.open_file(mntfile, readonly=False)
|
|
1455
1475
|
rt = fl.root()
|
|
1456
1476
|
if sname not in rt.names():
|
|
1457
|
-
|
|
1477
|
+
if pdir:
|
|
1478
|
+
h5writer.link("%s/%s:/%s" %
|
|
1479
|
+
(pdir, fname, entryname), rt, sname)
|
|
1480
|
+
else:
|
|
1481
|
+
h5writer.link("%s:/%s" % (fname, entryname), rt, sname)
|
|
1458
1482
|
self.debug("Link '%s' in '%s' created " % (sname, mntname))
|
|
1459
1483
|
rt.close()
|
|
1460
1484
|
fl.close()
|
|
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
|
{sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/sardana_nxsrecorder.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/sardana_nxsrecorder.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.0}/sardana_nxsrecorder.egg-info/requires.txt
RENAMED
|
File without changes
|
{sardana-nxsrecorder-3.26.1 → sardana-nxsrecorder-3.28.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
|