sardana-nxsrecorder 3.28.1__py3-none-any.whl → 3.29.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sardana-nxsrecorder
3
- Version: 3.28.1
3
+ Version: 3.29.1
4
4
  Summary: NeXus Sardana Scan Recorder
5
5
  Home-page: https://github.com/nexdatas/sardana-nxs-filerecorder/
6
6
  Author: Jan Kotanski
@@ -76,7 +76,7 @@ Extract sources and run
76
76
 
77
77
  .. code-block:: console
78
78
 
79
- $ python setup.py install
79
+ $ python3 setup.py install
80
80
 
81
81
  and add an *RecorderPath* property of *MacroServer* with its value
82
82
  defining the package location, e.g.
@@ -87,7 +87,7 @@ defining the package location, e.g.
87
87
  Debian packages
88
88
  """""""""""""""
89
89
 
90
- Debian Bookworm, Bullseye, Buster and Ubuntu Lunar, Jammy and Focal packages can be found in the HDRI repository.
90
+ Debian Bookworm, Bullseye, Buster and Ubuntu Oracular, Noble Jammy packages can be found in the HDRI repository.
91
91
 
92
92
  To install the debian packages, add the PGP repository key
93
93
 
@@ -109,7 +109,7 @@ Finally, for python2.7
109
109
  .. code-block:: console
110
110
 
111
111
  $ apt-get update
112
- $ apt-get install python-sardana-nxsrecorder
112
+ $ apt-get install python3-sardana-nxsrecorder
113
113
 
114
114
  and set the RecoderPath property of MacroServer with
115
115
 
@@ -117,34 +117,15 @@ and set the RecoderPath property of MacroServer with
117
117
 
118
118
  $ apt-get install sardana-nxsrecorder
119
119
 
120
- For python3
121
-
122
- .. code-block:: console
123
-
124
- $ apt-get update
125
- $ apt-get install python3-sardana-nxsrecorder
126
- $ apt-get install sardana-nxsrecorder3
127
120
 
128
121
  To instal other NexDaTaS packages
129
122
 
130
- .. code-block:: console
131
-
132
- $ apt-get install python-nxswriter nxsconfigserver-db python-nxsconfigserver nxsconfigtool python-nxstools nxswriter nxsconfigserver nxsrecselector
133
-
134
- or for python 3
135
-
136
123
  .. code-block:: console
137
124
 
138
125
  $ apt-get install python3-nxswriter nxsconfigserver-db python3-nxsconfigserver nxsconfigtool3 python3-nxstools nxswriter3 nxsconfigserver3
139
126
 
140
127
  and
141
128
 
142
- .. code-block:: console
143
-
144
- $ apt-get install python-nxsrecselector nxsrecselector nxselector
145
-
146
- or for python3
147
-
148
129
  .. code-block:: console
149
130
 
150
131
  $ apt-get install python3-nxsrecselector nxsrecselector3 nxselector3
@@ -254,4 +235,14 @@ The NeXus file recorder uses the following sardana environment variables
254
235
  * **NeXusWriterProperties** *(dict)* - a dictionary of TangoDataWriter (NXSDataWriter) properties (starting with a small letter)
255
236
  * **NeXusMeshScanID** *(int)* - ScanID used for composed scans e.g. mesh scan combined from many linear scans
256
237
  * **NeXusWriterModes** *(list)* - a list of strategy modes e.g. ``NOINIT``, ``NOSTEP``, ``NOFINAL``, ``MESH``, ``VDS`` separated by commas
257
-
238
+ * **ScanNames** *(bool)* - special mode of using ScanName directories i.e.
239
+
240
+ * ``True``: the master file in the ScanName directory,
241
+
242
+ * ``False``: the master file in the grouping ScanName directory (e.g. without ScanID),
243
+
244
+ * ``None`` (or undefined): standard mode where the master files are outside the ScanName directory
245
+
246
+ * **ScanNamesNoGrouping** *(bool)* - do not perform grouping when ``ScanNames`` is ``False``
247
+ * **ScanNamesNoMetadata** *(bool)* - do not perform master file metadata ingestion when ``ScanNames`` is ``False``
248
+
@@ -0,0 +1,6 @@
1
+ sardananxsrecorder/__init__.py,sha256=aKW8w3ANatKiJmOz1vxJfvTMnZ3EKFl-HMslZY8eAvA,896
2
+ sardananxsrecorder/nxsrecorder.py,sha256=yu0VvbXGDi8JBrIXTFDQdBQjDMOgfOnAfXTx7weBVkA,59898
3
+ sardana_nxsrecorder-3.29.1.dist-info/METADATA,sha256=qVduZUM1e8XM40LuSxPRfyrIXgOXF-6P-3QGb1G9fMA,8116
4
+ sardana_nxsrecorder-3.29.1.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
5
+ sardana_nxsrecorder-3.29.1.dist-info/top_level.txt,sha256=YdD3m417i-jlYyQWgiizgZ8lQQcOjM8y-bmUHrGkfY4,19
6
+ sardana_nxsrecorder-3.29.1.dist-info/RECORD,,
@@ -20,4 +20,4 @@
20
20
  """ Sardana Scan Recorders """
21
21
 
22
22
  #: package version
23
- __version__ = "3.28.1"
23
+ __version__ = "3.29.1"
@@ -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:
@@ -1400,28 +1402,36 @@ class NXS_FileRecorder(BaseFileRecorder):
1400
1402
  commands = []
1401
1403
  try:
1402
1404
  sm = dict(self.__getEnvVar('SciCatMeasurements', {}))
1405
+ if not isinstance(sm, dict):
1406
+ sm = {}
1403
1407
  except Exception:
1404
1408
  sm = {}
1405
1409
 
1406
1410
  if fdir in sm.keys():
1407
1411
  cgrp = sm[fdir]
1408
1412
  if cgrp != scanname:
1409
- commands.append("__command__ stop")
1410
- commands.append("%s:%s" % (cgrp, time.time()))
1411
- commands.append("__command__ start %s" % scanname)
1413
+ if not nogrouping and not nometa:
1414
+ commands.append("__command__ stop")
1415
+ commands.append("%s:%s" % (cgrp, time.time()))
1416
+ commands.append("__command__ start %s" % scanname)
1412
1417
  else:
1413
- commands.append("__command__ start %s" % scanname)
1414
- commands.append(sname)
1415
- commands.append("__command__ stop")
1416
- commands.append("%s:%s" % (scanname, time.time()))
1417
- # commands.append("__command__ start %s" % scanname)
1418
+ if not nogrouping and not nometa:
1419
+ commands.append("__command__ start %s" % scanname)
1420
+ if not nometa:
1421
+ commands.append(sname)
1422
+ if not nogrouping and not nometa:
1423
+ commands.append("__command__ stop")
1424
+ if not nogrouping:
1425
+ commands.append("%s:%s" % (scanname, time.time()))
1418
1426
  sname = "\n".join(commands)
1419
1427
 
1420
- sm[fdir] = scanname
1428
+ if not nogrouping and not nometa:
1429
+ sm[fdir] = scanname
1421
1430
  self.__env['SciCatMeasurements'] = sm
1422
1431
 
1423
- with open(dslfile, "a+") as fl:
1424
- fl.write("\n%s" % sname)
1432
+ if sname:
1433
+ with open(dslfile, "a+") as fl:
1434
+ fl.write("\n%s" % sname)
1425
1435
 
1426
1436
  def __createMeasurementFile(self):
1427
1437
  """ create measurement file """
@@ -1448,6 +1458,8 @@ class NXS_FileRecorder(BaseFileRecorder):
1448
1458
 
1449
1459
  try:
1450
1460
  sm = dict(self.__getEnvVar('SciCatMeasurements', {}))
1461
+ if not isinstance(sm, dict):
1462
+ sm = {}
1451
1463
  except Exception:
1452
1464
  sm = {}
1453
1465
 
@@ -1,6 +0,0 @@
1
- sardananxsrecorder/__init__.py,sha256=6f4z75CSpGzc7npZOYVoYLWrZSskxrwIL3ycegwf0UA,896
2
- sardananxsrecorder/nxsrecorder.py,sha256=3JCs47ZUFPvRwnAEPEreMigq0M_lswLKNrc2xxmBZFI,59381
3
- sardana_nxsrecorder-3.28.1.dist-info/METADATA,sha256=fBQs5k_8RAZpE4xqChA2-T_0l1MOmtA7GEec6PlaQXg,8035
4
- sardana_nxsrecorder-3.28.1.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
5
- sardana_nxsrecorder-3.28.1.dist-info/top_level.txt,sha256=YdD3m417i-jlYyQWgiizgZ8lQQcOjM8y-bmUHrGkfY4,19
6
- sardana_nxsrecorder-3.28.1.dist-info/RECORD,,