sardana-nxsrecorder 3.29.1__py3-none-any.whl → 3.30.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.29.1.dist-info → sardana_nxsrecorder-3.30.0.dist-info}/METADATA +1 -1
- sardana_nxsrecorder-3.30.0.dist-info/RECORD +6 -0
- sardananxsrecorder/__init__.py +1 -1
- sardananxsrecorder/nxsrecorder.py +27 -1
- sardana_nxsrecorder-3.29.1.dist-info/RECORD +0 -6
- {sardana_nxsrecorder-3.29.1.dist-info → sardana_nxsrecorder-3.30.0.dist-info}/WHEEL +0 -0
- {sardana_nxsrecorder-3.29.1.dist-info → sardana_nxsrecorder-3.30.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
sardananxsrecorder/__init__.py,sha256=Gi6Nc8XqKBPmq8YhG7H2-9QGIR9lmirdvd-UUbWFOZU,896
|
|
2
|
+
sardananxsrecorder/nxsrecorder.py,sha256=D2upQ6dLwZZQKPgIzUJPROAfDFYJfWBk-T-8cmNpdOU,60716
|
|
3
|
+
sardana_nxsrecorder-3.30.0.dist-info/METADATA,sha256=OyCMdsfpzFGG8CyS2iPvvE6m5vo-HMqvLFfrmnvMQBg,8116
|
|
4
|
+
sardana_nxsrecorder-3.30.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
5
|
+
sardana_nxsrecorder-3.30.0.dist-info/top_level.txt,sha256=YdD3m417i-jlYyQWgiizgZ8lQQcOjM8y-bmUHrGkfY4,19
|
|
6
|
+
sardana_nxsrecorder-3.30.0.dist-info/RECORD,,
|
sardananxsrecorder/__init__.py
CHANGED
|
@@ -600,6 +600,26 @@ class NXS_FileRecorder(BaseFileRecorder):
|
|
|
600
600
|
alias = None
|
|
601
601
|
return alias
|
|
602
602
|
|
|
603
|
+
def __short_name(self, name):
|
|
604
|
+
""" provides a device alias
|
|
605
|
+
|
|
606
|
+
:param name: device name
|
|
607
|
+
:type name: :obj:`str`
|
|
608
|
+
:returns: device alias
|
|
609
|
+
:rtype: :obj:`str`
|
|
610
|
+
"""
|
|
611
|
+
# if name does not contain a "/" it's probably an alias
|
|
612
|
+
if name.startswith("tango://"):
|
|
613
|
+
name = name[8:]
|
|
614
|
+
if name.find("/") == -1:
|
|
615
|
+
return name
|
|
616
|
+
|
|
617
|
+
# haso107klx:10000/expchan/hasysis3820ctrl/1
|
|
618
|
+
if name.find(':') >= 0:
|
|
619
|
+
lst = name.split("/")
|
|
620
|
+
name = "/".join(lst[1:])
|
|
621
|
+
return name
|
|
622
|
+
|
|
603
623
|
def __collectAliases(self, envRec):
|
|
604
624
|
""" sets deviceAlaises and dynamicDataSources from env record
|
|
605
625
|
|
|
@@ -656,6 +676,9 @@ class NXS_FileRecorder(BaseFileRecorder):
|
|
|
656
676
|
lddict = []
|
|
657
677
|
tdss = [ds for ds in dss if not ds.startswith("tango://")
|
|
658
678
|
and ds not in nexuscomponents]
|
|
679
|
+
tgdss = [self.__short_name(ds)
|
|
680
|
+
for ds in dss if ds.startswith("tango://")
|
|
681
|
+
and ds not in nexuscomponents]
|
|
659
682
|
|
|
660
683
|
fields = []
|
|
661
684
|
for dd in envRec['datadesc']:
|
|
@@ -705,10 +728,13 @@ class NXS_FileRecorder(BaseFileRecorder):
|
|
|
705
728
|
for mdd in fields.values():
|
|
706
729
|
lddict.append(mdd)
|
|
707
730
|
|
|
731
|
+
tdss.extend(tgdss)
|
|
708
732
|
jddict = json.dumps(lddict, cls=NXS_FileRecorder.numpyEncoder)
|
|
709
733
|
jdss = json.dumps(tdss, cls=NXS_FileRecorder.numpyEncoder)
|
|
710
734
|
jkeys = json.dumps(keys, cls=NXS_FileRecorder.numpyEncoder)
|
|
711
|
-
|
|
735
|
+
self.debug("JDD: %s" % jddict)
|
|
736
|
+
self.debug("JDs: %s" % tdss)
|
|
737
|
+
self.debug("Jk: %s" % jkeys)
|
|
712
738
|
self.__dynamicCP = \
|
|
713
739
|
self.__command(self.__nexussettings_device,
|
|
714
740
|
"createDynamicComponent",
|
|
@@ -1,6 +0,0 @@
|
|
|
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,,
|
|
File without changes
|
|
File without changes
|