sardana-nxsrecorder 3.23.0__tar.gz → 3.24.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.
Files changed (40) hide show
  1. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/ChangeLog +4 -0
  2. {sardana-nxsrecorder-3.23.0/sardana_nxsrecorder.egg-info → sardana-nxsrecorder-3.24.0}/PKG-INFO +2 -1
  3. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/README.rst +1 -0
  4. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0/sardana_nxsrecorder.egg-info}/PKG-INFO +2 -1
  5. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/sardananxsrecorder/__init__.py +1 -1
  6. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/sardananxsrecorder/nxsrecorder.py +12 -0
  7. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/.ci/debian10_py2/Dockerfile +0 -0
  8. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/.ci/debian10_py3/Dockerfile +0 -0
  9. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/.ci/debian8_py2/Dockerfile +0 -0
  10. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/.ci/debian8_py3/Dockerfile +0 -0
  11. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/.ci/debian9_py2/Dockerfile +0 -0
  12. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/.ci/debian9_py3/Dockerfile +0 -0
  13. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/.ci/install.sh +0 -0
  14. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/.ci/run.sh +0 -0
  15. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/.ci/ubuntu16.04_py2/Dockerfile +0 -0
  16. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/.ci/ubuntu16.04_py3/Dockerfile +0 -0
  17. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/.ci/ubuntu18.04_py2/Dockerfile +0 -0
  18. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/.ci/ubuntu18.04_py3/Dockerfile +0 -0
  19. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/.ci/ubuntu20.04_py3/Dockerfile +0 -0
  20. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/.flake8 +0 -0
  21. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/.github/workflows/tests.yml +0 -0
  22. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/.gitignore +0 -0
  23. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/COPYRIGHT +0 -0
  24. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/MANIFEST.in +0 -0
  25. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/doc/Makefile +0 -0
  26. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/doc/conf.py +0 -0
  27. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/doc/index.rst +0 -0
  28. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/doc/make.bat +0 -0
  29. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/doc/sardananxsrecorder.rst +0 -0
  30. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/man/sardananxsrecorder.1 +0 -0
  31. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/sardana_nxsrecorder.egg-info/SOURCES.txt +0 -0
  32. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/sardana_nxsrecorder.egg-info/dependency_links.txt +0 -0
  33. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/sardana_nxsrecorder.egg-info/not-zip-safe +0 -0
  34. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/sardana_nxsrecorder.egg-info/requires.txt +0 -0
  35. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/sardana_nxsrecorder.egg-info/top_level.txt +0 -0
  36. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/setup.cfg +0 -0
  37. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/setup.py +0 -0
  38. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/test/__init__.py +0 -0
  39. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/test/__main__.py +0 -0
  40. {sardana-nxsrecorder-3.23.0 → sardana-nxsrecorder-3.24.0}/test/main.py +0 -0
@@ -1,3 +1,7 @@
1
+ 2024-06-06 Jan Kotanski <jankotan@gmail.com>
2
+ * set TangoDataWriter properties from NeXusWriterProperties variable (#121)
3
+ * tagged as 3.24.0
4
+
1
5
  2024-06-04 Jan Kotanski <jankotan@gmail.com>
2
6
  * skip acquisition for the modes listed in NeXusSkipAcquisitionModes variable (#117)
3
7
  * tagged as 3.23.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sardana-nxsrecorder
3
- Version: 3.23.0
3
+ Version: 3.24.0
4
4
  Summary: NeXus Sardana Scan Recorder
5
5
  Home-page: https://github.com/nexdatas/sardana-nxs-filerecorder/
6
6
  Author: Jan Kotanski
@@ -250,4 +250,5 @@ The NeXus file recorder uses the following sardana environment variables
250
250
  * **ScicatMeasurements** *(dict)* - a dictionary of measurement names indexed by ``ScanDir`` and used by ``scingestor``, default: ``{}``
251
251
  * **CreateMeasurementFile** *(bool)* - create a measurement file with its filename releated to ``ScicatMeasurements`` or ``ScanFile``, default: ``False``
252
252
  * **NeXusSkipAcquisitionModes** *(list)* - a list of strategy modes for which acquisition is skip
253
+ * **NeXusWriterProperties** *(dict)* - a dictionary of TangoDataWriter (NXSDataWriter) properties (starting with a small letter)
253
254
 
@@ -225,4 +225,5 @@ The NeXus file recorder uses the following sardana environment variables
225
225
  * **ScicatMeasurements** *(dict)* - a dictionary of measurement names indexed by ``ScanDir`` and used by ``scingestor``, default: ``{}``
226
226
  * **CreateMeasurementFile** *(bool)* - create a measurement file with its filename releated to ``ScicatMeasurements`` or ``ScanFile``, default: ``False``
227
227
  * **NeXusSkipAcquisitionModes** *(list)* - a list of strategy modes for which acquisition is skip
228
+ * **NeXusWriterProperties** *(dict)* - a dictionary of TangoDataWriter (NXSDataWriter) properties (starting with a small letter)
228
229
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sardana-nxsrecorder
3
- Version: 3.23.0
3
+ Version: 3.24.0
4
4
  Summary: NeXus Sardana Scan Recorder
5
5
  Home-page: https://github.com/nexdatas/sardana-nxs-filerecorder/
6
6
  Author: Jan Kotanski
@@ -250,4 +250,5 @@ The NeXus file recorder uses the following sardana environment variables
250
250
  * **ScicatMeasurements** *(dict)* - a dictionary of measurement names indexed by ``ScanDir`` and used by ``scingestor``, default: ``{}``
251
251
  * **CreateMeasurementFile** *(bool)* - create a measurement file with its filename releated to ``ScicatMeasurements`` or ``ScanFile``, default: ``False``
252
252
  * **NeXusSkipAcquisitionModes** *(list)* - a list of strategy modes for which acquisition is skip
253
+ * **NeXusWriterProperties** *(dict)* - a dictionary of TangoDataWriter (NXSDataWriter) properties (starting with a small letter)
253
254
 
@@ -20,4 +20,4 @@
20
20
  """ Sardana Scan Recorders """
21
21
 
22
22
  #: package version
23
- __version__ = "3.23.0"
23
+ __version__ = "3.24.0"
@@ -543,6 +543,18 @@ class NXS_FileRecorder(BaseFileRecorder):
543
543
  if self.__nexuswriter_device is None:
544
544
  from nxswriter import TangoDataWriter
545
545
  self.__nexuswriter_device = TangoDataWriter.TangoDataWriter()
546
+ try:
547
+ properties = dict(
548
+ self.__getEnvVar("NeXusWriterProperties", {}))
549
+ except Exception as e:
550
+ self.warning(
551
+ "Cannot load NeXusWriterProperties %s" % (str(e)))
552
+ self.__macro().warning(
553
+ "Cannot load NeXusWriterProperties %s" % (str(e)))
554
+ properties = {}
555
+ for ky, vl in properties.items():
556
+ if hasattr(self.__nexuswriter_device, ky):
557
+ setattr(self.__nexuswriter_device, ky, vl)
546
558
 
547
559
  def __get_alias(self, name):
548
560
  """ provides a device alias