sardana-nxsrecorder 3.28.0__py3-none-any.whl → 3.29.0__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.
- {sardana_nxsrecorder-3.28.0.dist-info → sardana_nxsrecorder-3.29.0.dist-info}/METADATA +12 -2
- sardana_nxsrecorder-3.29.0.dist-info/RECORD +6 -0
- sardananxsrecorder/__init__.py +1 -1
- sardananxsrecorder/nxsrecorder.py +19 -11
- sardana_nxsrecorder-3.28.0.dist-info/RECORD +0 -6
- {sardana_nxsrecorder-3.28.0.dist-info → sardana_nxsrecorder-3.29.0.dist-info}/WHEEL +0 -0
- {sardana_nxsrecorder-3.28.0.dist-info → sardana_nxsrecorder-3.29.0.dist-info}/top_level.txt +0 -0
|
@@ -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
|
|
@@ -254,4 +254,14 @@ The NeXus file recorder uses the following sardana environment variables
|
|
|
254
254
|
* **NeXusWriterProperties** *(dict)* - a dictionary of TangoDataWriter (NXSDataWriter) properties (starting with a small letter)
|
|
255
255
|
* **NeXusMeshScanID** *(int)* - ScanID used for composed scans e.g. mesh scan combined from many linear scans
|
|
256
256
|
* **NeXusWriterModes** *(list)* - a list of strategy modes e.g. ``NOINIT``, ``NOSTEP``, ``NOFINAL``, ``MESH``, ``VDS`` separated by commas
|
|
257
|
-
|
|
257
|
+
* **ScanNames** *(bool)* - special mode of using ScanName directories i.e.
|
|
258
|
+
|
|
259
|
+
* ``True``: the master file in the ScanName directory,
|
|
260
|
+
|
|
261
|
+
* ``False``: the master file in the grouping ScanName directory (e.g. without ScanID),
|
|
262
|
+
|
|
263
|
+
* ``None`` (or undefined): standard mode where the master files are outside the ScanName directory
|
|
264
|
+
|
|
265
|
+
* **ScanNamesNoGrouping** *(bool)* - do not perform grouping when ``ScanNames`` is ``False``
|
|
266
|
+
* **ScanNamesNoMetadata** *(bool)* - do not perform master file metadata ingestion when ``ScanNames`` is ``False``
|
|
267
|
+
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
sardananxsrecorder/__init__.py,sha256=I4fy63PG6PEO-ccX4KwyaT3_WUwNbwqi2Vg6PQTh0_c,896
|
|
2
|
+
sardananxsrecorder/nxsrecorder.py,sha256=ovQh6Fhh7YTShCpuvsrntFGY2TJxd7V3Nbc-6nrFxBs,59760
|
|
3
|
+
sardana_nxsrecorder-3.29.0.dist-info/METADATA,sha256=19GQGpmlAvFRwpBTBq4lwXOiZ64c_C217F2qHkoA6Tc,8569
|
|
4
|
+
sardana_nxsrecorder-3.29.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
5
|
+
sardana_nxsrecorder-3.29.0.dist-info/top_level.txt,sha256=YdD3m417i-jlYyQWgiizgZ8lQQcOjM8y-bmUHrGkfY4,19
|
|
6
|
+
sardana_nxsrecorder-3.29.0.dist-info/RECORD,,
|
sardananxsrecorder/__init__.py
CHANGED
|
@@ -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 """
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
sardananxsrecorder/__init__.py,sha256=h6HQAAt8xp2J48ltT-jcFK-o0PVLwSqt44LUq8Ma6AU,896
|
|
2
|
-
sardananxsrecorder/nxsrecorder.py,sha256=BvFnu1HpIg2HzKdIUtJCdXVRJT-f5_cA_3uqyLrYInc,59379
|
|
3
|
-
sardana_nxsrecorder-3.28.0.dist-info/METADATA,sha256=mWdquaGZEVncGQKYN_fQOodoX2vrJ2Op-vdTLUJ-pog,8035
|
|
4
|
-
sardana_nxsrecorder-3.28.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
5
|
-
sardana_nxsrecorder-3.28.0.dist-info/top_level.txt,sha256=YdD3m417i-jlYyQWgiizgZ8lQQcOjM8y-bmUHrGkfY4,19
|
|
6
|
-
sardana_nxsrecorder-3.28.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|