sardana-nxsrecorder 3.30.1__py3-none-any.whl → 3.32.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sardana-nxsrecorder
3
- Version: 3.30.1
3
+ Version: 3.32.0
4
4
  Summary: NeXus Sardana Scan Recorder
5
5
  Home-page: https://github.com/nexdatas/sardana-nxs-filerecorder/
6
6
  Author: Jan Kotanski
@@ -0,0 +1,6 @@
1
+ sardananxsrecorder/__init__.py,sha256=_bIX5ViOWt3Bnv7n4bn44XacPyir-PKQzzrHdOmIi-c,896
2
+ sardananxsrecorder/nxsrecorder.py,sha256=sNY9soUv-C7Hrrcxbrnh6yh3-cSBbqmpsxRcq7anEpw,67979
3
+ sardana_nxsrecorder-3.32.0.dist-info/METADATA,sha256=-8OWatm0mP0tl7g9eoIghSPFbBlmI5YBrbT8gCIRRX0,8256
4
+ sardana_nxsrecorder-3.32.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
5
+ sardana_nxsrecorder-3.32.0.dist-info/top_level.txt,sha256=YdD3m417i-jlYyQWgiizgZ8lQQcOjM8y-bmUHrGkfY4,19
6
+ sardana_nxsrecorder-3.32.0.dist-info/RECORD,,
@@ -20,4 +20,4 @@
20
20
  """ Sardana Scan Recorders """
21
21
 
22
22
  #: package version
23
- __version__ = "3.30.1"
23
+ __version__ = "3.32.0"
@@ -563,6 +563,15 @@ class NXS_FileRecorder(BaseFileRecorder):
563
563
  "Updating ActiveMntGrp")
564
564
  self.__command(self.__nexussettings_device, "importMntGrp")
565
565
  self.__command(self.__nexussettings_device, "updateMntGrp")
566
+ if hasattr(self.__nexussettings_device, "cachecomponent"):
567
+ ccomp = self.__nexussettings_device.cachecomponent
568
+ if ccomp:
569
+ self.debug('__setNexusDevices: '
570
+ 'Cache Writer Configuration: %s'
571
+ % str(ccomp))
572
+ self.__command(
573
+ self.__nexussettings_device,
574
+ "cacheWriterConfiguration", [])
566
575
 
567
576
  self.debug('__setNexusDevices: '
568
577
  'Writer Device: %s' % str(self.__raw_filename))
@@ -752,12 +761,13 @@ class NXS_FileRecorder(BaseFileRecorder):
752
761
  if fld and att:
753
762
  if fld in fields.keys():
754
763
  fields[fld][att] = vl
755
- else:
756
- fields[fld] = {
757
- "name": fld,
758
- "dtype": "string",
759
- "shape": tuple(),
760
- att: vl}
764
+ # else:
765
+ # fields[fld] = {
766
+ # "name": fld,
767
+ # "strategy": "INIT",
768
+ # "dtype": "string",
769
+ # "shape": tuple(),
770
+ # att: vl}
761
771
 
762
772
  for mdd in fields.values():
763
773
  lddict.append(mdd)
@@ -979,6 +989,15 @@ class NXS_FileRecorder(BaseFileRecorder):
979
989
  nexuscomponents.extend(lst)
980
990
  self.info("User Components %s" % str(nexuscomponents))
981
991
 
992
+ ccomp = None
993
+ if hasattr(self.__nexussettings_device, "cachecomponent"):
994
+ ccomp = self.__nexussettings_device.cachecomponent
995
+ allnexuscomponents = list(set(nexuscomponents) | set(mandatory))
996
+ if ccomp:
997
+ self.info("Cache Component %s" % str(ccomp))
998
+ nexuscomponents = [ccomp]
999
+ allnexuscomponents = [ccomp]
1000
+
982
1001
  self.__availableComps = []
983
1002
  lst = self.__getConfVar("OptionalComponents",
984
1003
  None, True, pass_default=self.__oddmntgrp)
@@ -992,7 +1011,7 @@ class NXS_FileRecorder(BaseFileRecorder):
992
1011
  self.debug("__createConfiguration: Search DataSources: %s"
993
1012
  % self.__oddmntgrp)
994
1013
  nds, dsNotFound, cpReq, missingKeys = self.__searchDataSources(
995
- list(set(nexuscomponents) | set(mandatory)),
1014
+ allnexuscomponents,
996
1015
  cfm, dyncp, userdata.keys())
997
1016
  self.debug("__createConfiguration: Get User data: %s"
998
1017
  % self.__oddmntgrp)
@@ -1,6 +0,0 @@
1
- sardananxsrecorder/__init__.py,sha256=E5trFSG5M-GbgxeR_3kAvsnEtOAN4aKJbIHF0jDu95k,896
2
- sardananxsrecorder/nxsrecorder.py,sha256=YVH1Y92qGEviUno_j1TsGAGvEKgF2sRYOho72WMkuq4,67052
3
- sardana_nxsrecorder-3.30.1.dist-info/METADATA,sha256=ZVF0ds6Y9meFfEziBW8Th1lue3OeTOLZy5QxaLybsME,8256
4
- sardana_nxsrecorder-3.30.1.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
5
- sardana_nxsrecorder-3.30.1.dist-info/top_level.txt,sha256=YdD3m417i-jlYyQWgiizgZ8lQQcOjM8y-bmUHrGkfY4,19
6
- sardana_nxsrecorder-3.30.1.dist-info/RECORD,,