sardana-nxsrecorder 3.30.1__py3-none-any.whl → 3.31.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.31.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=GgJQbb7Mf0ShhuhsJbq443ks6XofF4HKFmzYHxikBAg,896
2
+ sardananxsrecorder/nxsrecorder.py,sha256=BRwQmLSkS6mpj19u5uog6V1e3uUc3IWKeddtysuZo40,67472
3
+ sardana_nxsrecorder-3.31.0.dist-info/METADATA,sha256=_4xnp4oP9-ji-6ucQwrvUj_vrUEwWQEGl_Py1oekaXY,8256
4
+ sardana_nxsrecorder-3.31.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
5
+ sardana_nxsrecorder-3.31.0.dist-info/top_level.txt,sha256=YdD3m417i-jlYyQWgiizgZ8lQQcOjM8y-bmUHrGkfY4,19
6
+ sardana_nxsrecorder-3.31.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.31.0"
@@ -752,12 +752,13 @@ class NXS_FileRecorder(BaseFileRecorder):
752
752
  if fld and att:
753
753
  if fld in fields.keys():
754
754
  fields[fld][att] = vl
755
- else:
756
- fields[fld] = {
757
- "name": fld,
758
- "dtype": "string",
759
- "shape": tuple(),
760
- att: vl}
755
+ # else:
756
+ # fields[fld] = {
757
+ # "name": fld,
758
+ # "strategy": "INIT",
759
+ # "dtype": "string",
760
+ # "shape": tuple(),
761
+ # att: vl}
761
762
 
762
763
  for mdd in fields.values():
763
764
  lddict.append(mdd)
@@ -979,6 +980,15 @@ class NXS_FileRecorder(BaseFileRecorder):
979
980
  nexuscomponents.extend(lst)
980
981
  self.info("User Components %s" % str(nexuscomponents))
981
982
 
983
+ ccomp = None
984
+ if hasattr(self.__nexussettings_device, "cachecomponent"):
985
+ ccomp = self.__nexussettings_device.cachecomponent
986
+ allnexuscomponents = list(set(nexuscomponents) | set(mandatory))
987
+ if ccomp:
988
+ self.info("Cache Component %s" % str(ccomp))
989
+ nexuscomponents = [ccomp]
990
+ allnexuscomponents = [ccomp]
991
+
982
992
  self.__availableComps = []
983
993
  lst = self.__getConfVar("OptionalComponents",
984
994
  None, True, pass_default=self.__oddmntgrp)
@@ -992,7 +1002,7 @@ class NXS_FileRecorder(BaseFileRecorder):
992
1002
  self.debug("__createConfiguration: Search DataSources: %s"
993
1003
  % self.__oddmntgrp)
994
1004
  nds, dsNotFound, cpReq, missingKeys = self.__searchDataSources(
995
- list(set(nexuscomponents) | set(mandatory)),
1005
+ allnexuscomponents,
996
1006
  cfm, dyncp, userdata.keys())
997
1007
  self.debug("__createConfiguration: Get User data: %s"
998
1008
  % 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,,