sardana-nxsrecorder 3.29.1__tar.gz → 3.30.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.29.1 → sardana-nxsrecorder-3.30.0}/.ci/debian10_py2/Dockerfile +6 -2
  2. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/.ci/debian10_py3/Dockerfile +6 -2
  3. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/.ci/install.sh +8 -8
  4. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/.github/workflows/tests.yml +1 -1
  5. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/ChangeLog +4 -0
  6. {sardana-nxsrecorder-3.29.1/sardana_nxsrecorder.egg-info → sardana-nxsrecorder-3.30.0}/PKG-INFO +1 -1
  7. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/man/sardananxsrecorder.1 +15 -15
  8. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0/sardana_nxsrecorder.egg-info}/PKG-INFO +1 -1
  9. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/sardananxsrecorder/__init__.py +1 -1
  10. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/sardananxsrecorder/nxsrecorder.py +27 -1
  11. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/.ci/debian8_py2/Dockerfile +0 -0
  12. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/.ci/debian8_py3/Dockerfile +0 -0
  13. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/.ci/debian9_py2/Dockerfile +0 -0
  14. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/.ci/debian9_py3/Dockerfile +0 -0
  15. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/.ci/run.sh +0 -0
  16. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/.ci/ubuntu16.04_py2/Dockerfile +0 -0
  17. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/.ci/ubuntu16.04_py3/Dockerfile +0 -0
  18. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/.ci/ubuntu18.04_py2/Dockerfile +0 -0
  19. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/.ci/ubuntu18.04_py3/Dockerfile +0 -0
  20. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/.ci/ubuntu20.04_py3/Dockerfile +0 -0
  21. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/.flake8 +0 -0
  22. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/.gitignore +0 -0
  23. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/COPYRIGHT +0 -0
  24. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/MANIFEST.in +0 -0
  25. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/README.rst +0 -0
  26. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/doc/Makefile +0 -0
  27. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/doc/conf.py +0 -0
  28. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/doc/index.rst +0 -0
  29. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/doc/make.bat +0 -0
  30. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/doc/sardananxsrecorder.rst +0 -0
  31. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/sardana_nxsrecorder.egg-info/SOURCES.txt +0 -0
  32. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/sardana_nxsrecorder.egg-info/dependency_links.txt +0 -0
  33. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/sardana_nxsrecorder.egg-info/not-zip-safe +0 -0
  34. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/sardana_nxsrecorder.egg-info/requires.txt +0 -0
  35. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/sardana_nxsrecorder.egg-info/top_level.txt +0 -0
  36. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/setup.cfg +0 -0
  37. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/setup.py +0 -0
  38. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/test/__init__.py +0 -0
  39. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/test/__main__.py +0 -0
  40. {sardana-nxsrecorder-3.29.1 → sardana-nxsrecorder-3.30.0}/test/main.py +0 -0
@@ -1,7 +1,11 @@
1
1
  FROM debian:buster
2
2
 
3
- MAINTAINER DESY, Jan Kotanski <jankotan@gmail.com>
4
- RUN /bin/bash -c 'echo "deb http://ftp.de.debian.org/debian buster main" > /etc/apt/sources.list.d/debian9de.list'
3
+ # switch to the german archive mirror
4
+ RUN sed -i 's|http://deb.debian.org|http://archive.debian.org|g' /etc/apt/sources.list
5
+ RUN sed -i 's|http://security.debian.org|http://archive.debian.org|g' /etc/apt/sources.list
6
+
7
+ # MAINTAINER DESY, Jan Kotanski <jankotan@gmail.com>
8
+ # RUN /bin/bash -c 'echo "deb http://ftp.de.debian.org/debian buster main" > /etc/apt/sources.list.d/debian9de.list'
5
9
  RUN apt-get -qq update && apt-get -qq install -y libterm-readline-gnu-perl software-properties-common coreutils gnupg2 procps apt-utils curl apt-transport-https gnupg2 ca-certificates
6
10
  RUN curl http://repos.pni-hdri.de/debian_repo.pub.gpg | apt-key add -
7
11
  RUN add-apt-repository "deb http://repos.pni-hdri.de/apt/debian buster main" -y
@@ -1,7 +1,11 @@
1
1
  FROM debian:buster
2
2
 
3
- MAINTAINER DESY, Jan Kotanski <jankotan@gmail.com>
4
- RUN /bin/bash -c 'echo "deb http://ftp.de.debian.org/debian buster main" > /etc/apt/sources.list.d/debian9de.list'
3
+ # switch to the german archive mirror
4
+ RUN sed -i 's|http://deb.debian.org|http://archive.debian.org|g' /etc/apt/sources.list
5
+ RUN sed -i 's|http://security.debian.org|http://archive.debian.org|g' /etc/apt/sources.list
6
+
7
+ # MAINTAINER DESY, Jan Kotanski <jankotan@gmail.com>
8
+ # RUN /bin/bash -c 'echo "deb http://ftp.de.debian.org/debian buster main" > /etc/apt/sources.list.d/debian9de.list'
5
9
  RUN apt-get -qq update && apt-get -qq install -y libterm-readline-gnu-perl software-properties-common coreutils gnupg2 procps apt-utils curl apt-transport-https gnupg2 ca-certificates
6
10
  RUN curl http://repos.pni-hdri.de/debian_repo.pub.gpg | apt-key add -
7
11
  RUN add-apt-repository "deb http://repos.pni-hdri.de/apt/debian buster main" -y
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
3
  # workaround for a bug in debian9, i.e. starting mysql hangs
4
- if [ "$1" = "debian11" ] || [ "$1" = "debian12" ] || [ "$1" = "ubuntu24.04" ] || [ "$1" = "ubuntu24.10" ]; then
4
+ if [ "$1" = "debian11" ] || [ "$1" = "debian12" ] || [ "$1" = "ubuntu24.04" ] || [ "$1" = "ubuntu24.10" ] || [ "$1" = "ubuntu25.04" ]; then
5
5
  docker exec --user root ndts service mariadb restart
6
6
  else
7
7
  docker exec --user root ndts service mysql stop
@@ -16,7 +16,7 @@ fi
16
16
 
17
17
  docker exec --user root ndts /bin/bash -c 'export DEBIAN_FRONTEND=noninteractive; apt-get -qq update; apt-get -qq install -y xvfb libxcb1 libx11-xcb1 libxcb-keysyms1 libxcb-image0 libxcb-icccm4 libxcb-render-util0 xkb-data tango-common; sleep 10'
18
18
  if [ "$?" -ne "0" ]; then exit 255; fi
19
- if [ "$1" = "ubuntu24.04" ] || [ "$1" = "ubuntu24.10" ]; then
19
+ if [ "$1" = "ubuntu24.04" ] || [ "$1" = "ubuntu24.10" ] || [ "$1" = "ubuntu25.04" ]; then
20
20
  # docker exec --user tango ndts /bin/bash -c '/usr/lib/tango/DataBaseds 2 -ORBendPoint giop:tcp::10000 &'
21
21
  docker exec --user root ndts /bin/bash -c 'echo -e "[client]\nuser=root\npassword=rootpw" > /root/.my.cnf'
22
22
  docker exec --user root ndts /bin/bash -c 'echo -e "[client]\nuser=tango\nhost=localhost\npassword=rootpw" > /var/lib/tango/.my.cnf'
@@ -32,7 +32,7 @@ fi
32
32
  echo "install tango-db"
33
33
  docker exec --user root ndts /bin/bash -c 'apt-get -qq update; export DEBIAN_FRONTEND=noninteractive; apt-get -qq install -y tango-db; sleep 10'
34
34
  if [ "$?" -ne "0" ]; then exit 255; fi
35
- if [ "$1" = "ubuntu24.04" ] || [ "$1" = "ubuntu24.10" ]; then
35
+ if [ "$1" = "ubuntu24.04" ] || [ "$1" = "ubuntu24.10" ] || [ "$1" = "ubuntu25.04" ]; then
36
36
  docker exec --user tango ndts /usr/bin/mysql -e 'create database tango'
37
37
  docker exec --user tango ndts /bin/bash -c '/usr/bin/mysql tango < /usr/share/dbconfig-common/data/tango-db/install/mysql'
38
38
  fi
@@ -67,20 +67,20 @@ else
67
67
  docker exec --user root ndts /bin/bash -c 'cd itango-src; git checkout tags/v0.1.7 -b b0.1.7; python3 setup.py install'
68
68
  # docker exec --user root ndts /bin/bash -c 'cd taurus-src; git checkout; python3 setup.py install'
69
69
  fi
70
- if [ "$1" = "debian10" ] || [ "$1" = "ubuntu20.04" ] || [ "$1" = "ubuntu22.04" ] || [ "$1" = "ubuntu24.04" ] || [ "$1" = "ubuntu24.10" ] || [ "$1" = "ubuntu20.10" ] || [ "$1" = "debian11" ] || [ "$1" = "debian12" ] ; then
70
+ if [ "$1" = "debian10" ] || [ "$1" = "ubuntu20.04" ] || [ "$1" = "ubuntu22.04" ] || [ "$1" = "ubuntu24.04" ] || [ "$1" = "ubuntu24.10" ] || [ "$1" = "ubuntu25.04" ] || [ "$1" = "ubuntu20.10" ] || [ "$1" = "debian11" ] || [ "$1" = "debian12" ] ; then
71
71
  docker exec --user root ndts /bin/bash -c 'export DEBIAN_FRONTEND=noninteractive; apt-get -qq update; apt-get install -y git python3-six python3-numpy graphviz python3-sphinx g++ build-essential python3-dev pkg-config python3-all-dev python3-setuptools libtango-dev python3-setuptools python3-tango python3-tz; apt-get -qq install -y nxsconfigserver-db; sleep 10'
72
72
  else
73
73
  docker exec --user root ndts /bin/bash -c 'export DEBIAN_FRONTEND=noninteractive; apt-get -qq update; apt-get install -y git python3-six python3-numpy graphviz python3-sphinx g++ build-essential python3-dev pkg-config python3-all-dev python3-setuptools libtango-dev python3-setuptools python3-pytango python3-tz; apt-get -qq install -y nxsconfigserver-db; sleep 10'
74
74
  fi
75
75
  docker exec --user root ndts /bin/bash -c 'export DEBIAN_FRONTEND=noninteractive; apt-get -qq update; apt-get install -y libboost-python-dev libboost-dev python3-h5py python3-qtpy python3-click python3-setuptools python3-pint'
76
- if [ "$1" = "ubuntu20.04" ] || [ "$1" = "ubuntu20.10" ] || [ "$1" = "ubuntu21.04" ] || [ "$1" = "ubuntu22.04" ]|| [ "$1" = "ubuntu24.04" ] || [ "$1" = "ubuntu24.10" ] || [ "$1" = "debian11" ] || [ "$1" = "debian12" ] || [ "$1" = "debian10" ]; then
76
+ if [ "$1" = "ubuntu20.04" ] || [ "$1" = "ubuntu20.10" ] || [ "$1" = "ubuntu21.04" ] || [ "$1" = "ubuntu22.04" ]|| [ "$1" = "ubuntu24.04" ] || [ "$1" = "ubuntu24.10" ] || [ "$1" = "ubuntu25.04" ] || [ "$1" = "debian11" ] || [ "$1" = "debian12" ] || [ "$1" = "debian10" ]; then
77
77
  echo " "
78
78
  else
79
79
  docker exec --user root ndts /bin/bash -c 'export DEBIAN_FRONTEND=noninteractive; apt-get -qq update; apt-get install -y libtango-dev python3-dev'
80
80
  docker exec --user root ndts /bin/bash -c 'git clone https://gitlab.com/tango-controls/pytango pytango; cd pytango; git checkout tags/v9.2.5 -b b9.2.5'
81
81
  docker exec --user root ndts /bin/bash -c 'cd pytango; python3 setup.py install'
82
82
  fi
83
- if [ "$1" = "ubuntu24.04" ] || [ "$1" = "ubuntu24.10" ]; then
83
+ if [ "$1" = "ubuntu24.04" ] || [ "$1" = "ubuntu24.10" ] || [ "$1" = "ubuntu25.04" ]; then
84
84
  docker exec --user root ndts /usr/bin/mysql -e 'GRANT ALL PRIVILEGES ON nxsconfig.* TO "tango"@"%" identified by "rootpw"'
85
85
  docker exec --user root ndts /usr/bin/mysql -e 'GRANT ALL PRIVILEGES ON nxsconfig.* TO "tango"@"localhost" identified by "rootpw"'
86
86
  docker exec --user root ndts /usr/bin/mysql -e 'FLUSH PRIVILEGES'
@@ -91,7 +91,7 @@ fi
91
91
  if [ "$?" -ne "0" ]; then exit 255; fi
92
92
 
93
93
  echo "install qt5"
94
- if [ "$1" = "debian12" ] ||[ "$1" = "debian11" ] || [ "$1" = "ubuntu22.04" ] || [ "$1" = "ubuntu24.04" ] || [ "$1" = "ubuntu24.10" ]; then
94
+ if [ "$1" = "debian12" ] ||[ "$1" = "debian11" ] || [ "$1" = "ubuntu22.04" ] || [ "$1" = "ubuntu24.04" ] || [ "$1" = "ubuntu24.10" ] || [ "$1" = "ubuntu25.04" ]; then
95
95
  docker exec --user root ndts /bin/bash -c 'export DEBIAN_FRONTEND=noninteractive; apt-get -qq update; apt-get -qq install -y qtbase5-dev-tools'
96
96
  else
97
97
  docker exec --user root ndts /bin/bash -c 'export DEBIAN_FRONTEND=noninteractive; apt-get -qq update; apt-get -qq install -y qtbase5-dev-tools qt5-default'
@@ -105,7 +105,7 @@ if [ "$2" = "2" ]; then
105
105
  echo "install pytango and nxsconfigserver-db"
106
106
  docker exec --user root ndts /bin/bash -c 'apt-get -qq update; apt-get install -y python-pytango nxsconfigserver-db ; sleep 10'
107
107
  else
108
- if [ "$1" = "debian10" ] || [ "$1" = "ubuntu24.04" ] || [ "$1" = "ubuntu24.10" ] || [ "$1" = "ubuntu22.04" ] || [ "$1" = "ubuntu20.04" ] || [ "$1" = "ubuntu20.10" ] || [ "$1" = "debian11" ] || [ "$1" = "debian12" ] ; then
108
+ if [ "$1" = "debian10" ] || [ "$1" = "ubuntu24.04" ] || [ "$1" = "ubuntu24.10" ] || [ "$1" = "ubuntu25.04" ] || [ "$1" = "ubuntu22.04" ] || [ "$1" = "ubuntu20.04" ] || [ "$1" = "ubuntu20.10" ] || [ "$1" = "debian11" ] || [ "$1" = "debian12" ] ; then
109
109
  echo "install pytango"
110
110
  docker exec --user root ndts /bin/bash -c 'apt-get -qq update; apt-get install -y python3-tango'
111
111
  echo "install nxsconfigserver-db"
@@ -24,7 +24,7 @@ jobs:
24
24
  runs-on: ubuntu-latest
25
25
  strategy:
26
26
  matrix:
27
- os: [debian12, debian11, debian10, ubuntu24.10, ubuntu24.04, ubuntu22.04]
27
+ os: [debian12, debian11, debian10, ubuntu25.04, ubuntu24.04, ubuntu22.04]
28
28
  steps:
29
29
  - uses: actions/checkout@v2
30
30
  - uses: actions/setup-python@v2
@@ -1,3 +1,7 @@
1
+ 2025-07-29 Jan Kotanski <jankotan@gmail.com>
2
+ * add support for tango datasources from defmeas macro (#155)
3
+ * tagged as 3.30.0
4
+
1
5
  2024-12-11 Jan Kotanski <jankotan@gmail.com>
2
6
  * reset SciCatMeasurements if not dict (#149)
3
7
  * tagged as 3.29.1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sardana-nxsrecorder
3
- Version: 3.29.1
3
+ Version: 3.30.0
4
4
  Summary: NeXus Sardana Scan Recorder
5
5
  Home-page: https://github.com/nexdatas/sardana-nxs-filerecorder/
6
6
  Author: Jan Kotanski
@@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
27
27
  .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
28
28
  .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
29
29
  ..
30
- .TH "SARDANANXSRECORDER" "1" "Nov 07, 2024" "3.29" "Sardana NeXus Recorder"
30
+ .TH "SARDANANXSRECORDER" "1" "Jul 29, 2025" "3.30" "Sardana NeXus Recorder"
31
31
  .SH NAME
32
32
  sardananxsrecorder \- sardananxsrecorder Documentation
33
33
  .sp
@@ -356,9 +356,9 @@ constructor
356
356
  .B Parameters
357
357
  .INDENT 7.0
358
358
  .IP \(bu 2
359
- \fBfilename\fP (\fI\%str\fP) ScanFile name
359
+ \fBfilename\fP (\fI\%str\fP) \-\- ScanFile name
360
360
  .IP \(bu 2
361
- \fBmacro\fP (\fI\%sardana.macroserver.macro.Macro\fP) macro object
361
+ \fBmacro\fP (\fI\%sardana.macroserver.macro.Macro\fP) \-\- macro object
362
362
  .UNINDENT
363
363
  .UNINDENT
364
364
  .INDENT 7.0
@@ -370,13 +370,13 @@ adds custom data to configuration variables, i.e. from macros
370
370
  .B Parameters
371
371
  .INDENT 7.0
372
372
  .IP \(bu 2
373
- \fBvalue\fP (\fIany\fP) variable value
373
+ \fBvalue\fP (\fIany\fP) \-\- variable value
374
374
  .IP \(bu 2
375
- \fBname\fP (\fI\%str\fP) variable name
375
+ \fBname\fP (\fI\%str\fP) \-\- variable name
376
376
  .IP \(bu 2
377
- \fBgroup\fP (\fI\%str\fP) variable group inside variable dictionary
377
+ \fBgroup\fP (\fI\%str\fP) \-\- variable group inside variable dictionary
378
378
  .IP \(bu 2
379
- \fBremove\fP (\fI\%bool\fP) if True variable will be removed
379
+ \fBremove\fP (\fI\%bool\fP) \-\- if True variable will be removed
380
380
  .UNINDENT
381
381
  .UNINDENT
382
382
  .UNINDENT
@@ -391,7 +391,7 @@ and closes the nexus file
391
391
  .INDENT 7.0
392
392
  .TP
393
393
  .B Parameters
394
- \fBrecordlist\fP (\fBsardana.macroserver.scan.scandata.RecordList\fP) sardana record list
394
+ \fBrecordlist\fP (\fBsardana.macroserver.scan.scandata.RecordList\fP) \-\- sardana record list
395
395
  .UNINDENT
396
396
  .UNINDENT
397
397
  .INDENT 7.0
@@ -405,7 +405,7 @@ and records in INIT mode
405
405
  .INDENT 7.0
406
406
  .TP
407
407
  .B Parameters
408
- \fBrecordlist\fP (\fBsardana.macroserver.scan.scandata.RecordList\fP) sardana record list
408
+ \fBrecordlist\fP (\fBsardana.macroserver.scan.scandata.RecordList\fP) \-\- sardana record list
409
409
  .UNINDENT
410
410
  .UNINDENT
411
411
  .INDENT 7.0
@@ -419,7 +419,7 @@ and records in INIT mode
419
419
  .INDENT 7.0
420
420
  .TP
421
421
  .B Parameters
422
- \fBrecord\fP (\fBsardana.macroserver.scan.scandata.Record\fP) sardana record list
422
+ \fBrecord\fP (\fBsardana.macroserver.scan.scandata.Record\fP) \-\- sardana record list
423
423
  .UNINDENT
424
424
  .UNINDENT
425
425
  .INDENT 7.0
@@ -477,12 +477,12 @@ indent level. An indent level of 0 will only insert newlines.
477
477
  None is the most compact representation.
478
478
  .sp
479
479
  If specified, separators should be an (item_separator, key_separator)
480
- tuple. The default is (’, ‘, ‘: ) if \fIindent\fP is \fBNone\fP and
481
- (‘,’, ‘: ) otherwise. To get the most compact JSON representation,
482
- you should specify (‘,’, ‘:’) to eliminate whitespace.
480
+ tuple. The default is (\(aq, \(aq, \(aq: \(aq) if \fIindent\fP is \fBNone\fP and
481
+ (\(aq,\(aq, \(aq: \(aq) otherwise. To get the most compact JSON representation,
482
+ you should specify (\(aq,\(aq, \(aq:\(aq) to eliminate whitespace.
483
483
  .sp
484
484
  If specified, default is a function that gets called for objects
485
- that can’t otherwise be serialized. It should return a JSON encodable
485
+ that can\(aqt otherwise be serialized. It should return a JSON encodable
486
486
  version of the object or raise a \fBTypeError\fP\&.
487
487
  .INDENT 7.0
488
488
  .TP
@@ -491,7 +491,7 @@ default encoder
491
491
  .INDENT 7.0
492
492
  .TP
493
493
  .B Parameters
494
- \fBobj\fP (\fI\%object\fP or \fIany\fP) numpy array object
494
+ \fBobj\fP (\fI\%object\fP or \fIany\fP) \-\- numpy array object
495
495
  .UNINDENT
496
496
  .UNINDENT
497
497
  .UNINDENT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sardana-nxsrecorder
3
- Version: 3.29.1
3
+ Version: 3.30.0
4
4
  Summary: NeXus Sardana Scan Recorder
5
5
  Home-page: https://github.com/nexdatas/sardana-nxs-filerecorder/
6
6
  Author: Jan Kotanski
@@ -20,4 +20,4 @@
20
20
  """ Sardana Scan Recorders """
21
21
 
22
22
  #: package version
23
- __version__ = "3.29.1"
23
+ __version__ = "3.30.0"
@@ -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
- # self.debug("JDD: %s" % jddict)
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",