nxswriter 3.8.2__py3-none-any.whl → 3.10.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.
nxswriter/ClientSource.py CHANGED
@@ -36,7 +36,7 @@ class ClientSource(DataSource):
36
36
 
37
37
  :brief: It sets all member variables to None
38
38
  :param streams: tango-like steamset class
39
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
39
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
40
40
  :param name: datasource name
41
41
  :type name: :obj:`str`
42
42
  """
nxswriter/DBaseSource.py CHANGED
@@ -71,7 +71,7 @@ class DBaseSource(DataSource):
71
71
 
72
72
  :brief: It sets all member variables to None
73
73
  :param streams: tango-like steamset class
74
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
74
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
75
75
  :param name: datasource name
76
76
  :type name: :obj:`str`
77
77
  """
nxswriter/DataHolder.py CHANGED
@@ -53,7 +53,7 @@ class DataHolder(object):
53
53
  :param decoders: poll with decoding classes
54
54
  :type decoders: :class:`nxswriter.DecoderPool.DecoderPool`
55
55
  :param streams: tango-like steamset class
56
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
56
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
57
57
  """
58
58
 
59
59
  #: (:obj:`str`) data format, i.e. SCALAR, SPECTRUM, IMAGE, VERTEX
@@ -69,7 +69,7 @@ class DataHolder(object):
69
69
  #: pool with decoding algorithm
70
70
  self.decoders = decoders
71
71
 
72
- #: (:class:`StreamSet` or :class:`tango.Device_4Impl`) stream set
72
+ #: (:class:`StreamSet` or :class:`tango.LatestDeviceImpl`) stream set
73
73
  self._streams = streams
74
74
  if str(self.tangoDType) == 'DevEncoded':
75
75
  self.__setupEncoded()
@@ -39,7 +39,7 @@ class DataSourceFactory(Element):
39
39
  :param last: the last element on the stack
40
40
  :type last: :class:`nxswriter.Element.Element`
41
41
  :param streams: tango-like steamset class
42
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
42
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
43
43
  """
44
44
  Element.__init__(self, "datasource", attrs, last, streams=streams)
45
45
  #: (:class:`nxswriter.DataSourcePool.DataSourcePool`) datasource pool
nxswriter/DataSources.py CHANGED
@@ -50,11 +50,11 @@ class DataSource(object):
50
50
 
51
51
  :brief: It cleans all member variables
52
52
  :param streams: tango-like steamset class
53
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
53
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
54
54
  :param name: datasource name
55
55
  :type name: :obj:`str`
56
56
  """
57
- #: (:class:`StreamSet` or :class:`tango.Device_4Impl`) stream set
57
+ #: (:class:`StreamSet` or :class:`tango.LatestDeviceImpl`) stream set
58
58
  self._streams = streams
59
59
  #: (:obj:`str`) datasoure name
60
60
  self._name = name
nxswriter/EAttribute.py CHANGED
@@ -41,7 +41,7 @@ class EAttribute(FElement):
41
41
  :param last: the last element from the stack
42
42
  :type last: :class:`nxswriter.Element.Element`
43
43
  :param streams: tango-like steamset class
44
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
44
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
45
45
  """
46
46
 
47
47
  FElement.__init__(self, "attribute", attrs, last, streams=streams)
@@ -164,14 +164,11 @@ class EAttribute(FElement):
164
164
  nptype = self.h5Object.dtype
165
165
  value = ''
166
166
 
167
- if nptype != "string":
167
+ if nptype == "bool":
168
+ value = False
169
+ elif nptype != "string":
168
170
  try:
169
- # workaround for bug #5618 in numpy for 1.8 < ver < 1.9.2
170
- #
171
- if nptype == 'uint64':
172
- value = numpy.iinfo(getattr(numpy, 'int64')).max
173
- else:
174
- value = numpy.iinfo(getattr(numpy, nptype)).max
171
+ value = numpy.iinfo(getattr(numpy, nptype)).max
175
172
  except Exception:
176
173
  try:
177
174
  try:
nxswriter/EField.py CHANGED
@@ -45,7 +45,7 @@ class EField(FElementWithAttr):
45
45
  :param last: the last element from the stack
46
46
  :type last: :class:`nxswriter.Element.Element`
47
47
  :param streams: tango-like steamset class
48
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
48
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
49
49
  :param reloadmode: reload mode
50
50
  :type reloadmode: :obj:`bool`
51
51
  """
@@ -56,6 +56,11 @@ class EField(FElementWithAttr):
56
56
  #: (:obj:`dict` <:obj:`str`, :obj:`str`>) \
57
57
  #: shape of the field, i.e. {index: length}
58
58
  self.lengths = {}
59
+ #: (:obj:`dict` <:obj:`int`, \
60
+ #: (:obj:`int`, :obj:`str`, :obj:`str`, :obj:`str`) >) \
61
+ #: index filter lists, i.e. \
62
+ #: {index: (filter_id, name, id, cd_values, availability)}
63
+ self.filters = {}
59
64
  #: (:obj:`bool`) True if field is stored in STEP mode
60
65
  self.__extraD = False
61
66
  #: (:obj:`str`) strategy, i.e. INIT, STEP, FINAL, POSTRUN
@@ -158,12 +163,41 @@ class EField(FElementWithAttr):
158
163
  datafilter = None
159
164
  # create Filter
160
165
 
161
- if self.compression:
166
+ datafilters = []
167
+ if (self.compression and self.rate) or self.shuffle:
162
168
  datafilter = FileWriter.data_filter(self._lastObject())
163
- datafilter.rate = self.rate
164
- datafilter.shuffle = self.shuffle
165
- datafilter.options = tuple(self.compression_opts)
166
- datafilter.filterid = self.compression
169
+ if (self.compression and self.rate):
170
+ datafilter.rate = self.rate
171
+ datafilter.options = tuple(self.compression_opts)
172
+ datafilter.shuffle = self.shuffle
173
+ datafilter.filterid = self.compression
174
+ if self.shuffle:
175
+ datafilter.shuffle = self.shuffle
176
+ datafilters.append(datafilter)
177
+ if self.filters:
178
+ mindex = max(self.filters.keys())
179
+ for ind in range(mindex):
180
+ if ind in self.filters:
181
+ (filter_id, fname, cd_values, availability) = \
182
+ self.filters[ind]
183
+ datafilter = FileWriter.data_filter(self._lastObject())
184
+
185
+ datafilter.name = fname
186
+ datafilter.filterid = filter_id
187
+ datafilter.availability = availability
188
+ try:
189
+ if cd_values:
190
+ options = [int(vl) for vl in cd_values.split(",")]
191
+ datafilter.options = tuple(options)
192
+ except Exception:
193
+ if self._streams:
194
+ self._streams.error(
195
+ "EField::__createObject() - "
196
+ "Wrong filter cd_values ",
197
+ std=False)
198
+
199
+ raise Exception("Wrong filter cd_values")
200
+ datafilters.append(datafilter)
167
201
 
168
202
  if sys.version_info < (3,):
169
203
  name = name.encode()
@@ -193,9 +227,9 @@ class EField(FElementWithAttr):
193
227
  mshape = [1]
194
228
  else:
195
229
  mshape = [0]
196
- if datafilter:
230
+ if datafilters:
197
231
  f = self._lastObject().create_field(
198
- name, dtype, mshape, [1], datafilter)
232
+ name, dtype, mshape, [1], datafilters)
199
233
  else:
200
234
  f = self._lastObject().create_field(
201
235
  name, dtype, mshape, [1])
@@ -605,12 +639,7 @@ class EField(FElementWithAttr):
605
639
  value = False
606
640
  elif nptype != "string":
607
641
  try:
608
- # workaround for bug #5618 in numpy for 1.8 < ver < 1.9.2
609
- #
610
- if nptype == 'uint64':
611
- value = numpy.iinfo(getattr(numpy, 'int64')).max
612
- else:
613
- value = numpy.iinfo(getattr(numpy, nptype)).max
642
+ value = numpy.iinfo(getattr(numpy, nptype)).max
614
643
  except Exception:
615
644
  try:
616
645
  try:
nxswriter/EGroup.py CHANGED
@@ -39,7 +39,7 @@ class EGroup(FElementWithAttr):
39
39
  :param last: the last element from the stack
40
40
  :type last: :class:`nxswriter.Element.Element`
41
41
  :param streams: tango-like steamset class
42
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
42
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
43
43
  :param reloadmode: reload mode
44
44
  :type reloadmode: :obj:`bool`
45
45
  """
nxswriter/ELink.py CHANGED
@@ -42,7 +42,7 @@ class ELink(FElement):
42
42
  :param last: the last element from the stack
43
43
  :type last: :class:`nxswriter.Element.Element`
44
44
  :param streams: tango-like steamset class
45
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
45
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
46
46
  """
47
47
  FElement.__init__(self, "link", attrs, last, streams=streams)
48
48
  #: (:class:`nxswriter.FileWriter.FTLink`) \
nxswriter/EStrategy.py CHANGED
@@ -36,7 +36,7 @@ class EStrategy(Element):
36
36
  :param last: the last element from the stack
37
37
  :type last: :class:`nxswriter.Element.Element`
38
38
  :param streams: tango-like steamset class
39
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
39
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
40
40
  """
41
41
  Element.__init__(self, "strategy", attrs, last, streams=streams)
42
42
  if "mode" in attrs.keys():
@@ -76,9 +76,9 @@ class EStrategy(Element):
76
76
  self.last.rate = 0
77
77
  if self.last.rate > 9:
78
78
  self.last.rate = 9
79
- if "shuffle" in attrs.keys() and hasattr(self.last, "shuffle"):
80
- self.last.shuffle = False \
81
- if attrs["shuffle"].upper() == "FALSE" else True
79
+ if "shuffle" in attrs.keys() and hasattr(self.last, "shuffle"):
80
+ self.last.shuffle = False \
81
+ if attrs["shuffle"].upper() == "FALSE" else True
82
82
 
83
83
  def store(self, xml=None, globalJSON=None):
84
84
  """ stores the tag content
nxswriter/Element.py CHANGED
@@ -35,7 +35,7 @@ class Element(object):
35
35
  :param last: the last element from the stack
36
36
  :type last: :class:`nxswriter.Element.Element`
37
37
  :param streams: tango-like steamset class
38
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
38
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
39
39
  """
40
40
  #: (:obj:`str`) stored tag name
41
41
  self.tagName = name
@@ -47,7 +47,7 @@ class Element(object):
47
47
  self.doc = ""
48
48
  #: (:class:`nxswriter.Element.Element`) the previous element
49
49
  self.last = last
50
- #: (:class:`StreamSet` or :class:`tango.Device_4Impl`) stream set
50
+ #: (:class:`StreamSet` or :class:`tango.LatestDeviceImpl`) stream set
51
51
  self._streams = streams
52
52
 
53
53
  def _lastObject(self):
nxswriter/FElement.py CHANGED
@@ -46,7 +46,7 @@ class FElement(Element):
46
46
  :param h5object: H5 file object
47
47
  :type h5object: :class:`nxswriter.FileWriter.FTObject`
48
48
  :param streams: tango-like steamset class
49
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
49
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
50
50
  """
51
51
  Element.__init__(self, name, attrs, last, streams=streams)
52
52
  #: (:class:`nxswriter.FileWriter.FTObject`) stored H5 file object
@@ -269,7 +269,7 @@ class FElementWithAttr(FElement):
269
269
  :param h5object: H5 file object
270
270
  :type h5object: :class:`nxswriter.FileWriter.FTObject`
271
271
  :param streams: tango-like steamset class
272
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
272
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
273
273
  :param reloadmode: reload mode
274
274
  :type reloadmode: :obj:`bool`
275
275
  """
@@ -96,7 +96,7 @@ class FetchNameHandler(sax.ContentHandler):
96
96
 
97
97
  :brief: It constructs parser handler for fetching group names
98
98
  :param streams: tango-like steamset class
99
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
99
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
100
100
  """
101
101
  sax.ContentHandler.__init__(self)
102
102
 
@@ -112,7 +112,7 @@ class FetchNameHandler(sax.ContentHandler):
112
112
  self.__content = []
113
113
  #: (:obj:`bool`) True if inside attribute tag
114
114
  self.__attribute = False
115
- #: (:class:`StreamSet` or :class:`tango.Device_4Impl`) stream set
115
+ #: (:class:`StreamSet` or :class:`tango.LatestDeviceImpl`) stream set
116
116
  self._streams = streams
117
117
 
118
118
  def startElement(self, name, attrs):
nxswriter/H5Elements.py CHANGED
@@ -39,7 +39,7 @@ class EFile(FElement):
39
39
  :param h5fileObject: H5 file object
40
40
  :type h5fileObject: :class:`nxswriter.FileWriter.FTfile`
41
41
  :param streams: tango-like steamset class
42
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
42
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
43
43
  """
44
44
  FElement.__init__(self, "file", attrs, last, h5fileObject,
45
45
  streams=streams)
@@ -58,7 +58,7 @@ class EDoc(Element):
58
58
  :param last: the last element from the stack
59
59
  :type last: :class:`nxswriter.Element.Element`
60
60
  :param streams: tango-like steamset class
61
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
61
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
62
62
  """
63
63
  Element.__init__(self, "doc", attrs, last, streams=streams)
64
64
 
@@ -88,7 +88,7 @@ class ESymbol(Element):
88
88
  :param last: the last element from the stack
89
89
  :type last: :class:`nxswriter.Element.Element`
90
90
  :param streams: tango-like steamset class
91
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
91
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
92
92
  """
93
93
  Element.__init__(self, "symbol", attrs, last, streams=streams)
94
94
  #: (:obj:`dict` <:obj:`str`, :obj:`str`>) \
@@ -121,7 +121,7 @@ class EDimensions(Element):
121
121
  :param last: the last element from the stack
122
122
  :type last: :class:`nxswriter.Element.Element`
123
123
  :param streams: tango-like steamset class
124
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
124
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
125
125
  """
126
126
  Element.__init__(self, "dimensions", attrs, last, streams=streams)
127
127
  if "rank" in attrs.keys():
@@ -141,7 +141,7 @@ class EDim(Element):
141
141
  :param last: the last element from the stack
142
142
  :type last: :class:`nxswriter.Element.Element`
143
143
  :param streams: tango-like steamset class
144
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
144
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
145
145
  """
146
146
  Element.__init__(self, "dim", attrs, last, streams=streams)
147
147
  if ("index" in attrs.keys()) and ("value" in attrs.keys()):
@@ -171,3 +171,49 @@ class EDim(Element):
171
171
  if dh:
172
172
  self._beforeLast().lengths[self.__index] = str(
173
173
  dh.cast("string"))
174
+
175
+
176
+ class EFilter(Element):
177
+
178
+ """ filter tag element
179
+ """
180
+
181
+ def __init__(self, attrs, last, streams=None):
182
+ """ constructor
183
+
184
+ :param attrs: dictionary of the tag attributes
185
+ :type attrs: :obj:`dict` <:obj:`str`, :obj:`str`>
186
+ :param last: the last element from the stack
187
+ :type last: :class:`nxswriter.Element.Element`
188
+ :param streams: tango-like steamset class
189
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
190
+ """
191
+ Element.__init__(self, "filter", attrs, last, streams=streams)
192
+ index = 0
193
+ try:
194
+ if ("index" in attrs.keys()):
195
+ index = int(attrs["index"])
196
+ except Exception:
197
+ pass
198
+ try:
199
+ filter_id = int(attrs["id"])
200
+ except Exception:
201
+ filter_id = 0
202
+ try:
203
+ name = attrs["name"]
204
+ except Exception:
205
+ name = ""
206
+ try:
207
+ cd_values = attrs["cd_values"]
208
+ except Exception:
209
+ cd_values = ""
210
+ try:
211
+ availability = attrs["availability"]
212
+ except Exception:
213
+ availability = ""
214
+
215
+ if filter_id or name:
216
+ self._beforeLast().filters[index] = (
217
+ filter_id, name, cd_values, availability)
218
+ #: (:obj:`int`) index attribute
219
+ self.__index = index
nxswriter/NXSWriter.py CHANGED
@@ -53,7 +53,7 @@ class CommandThread(Thread):
53
53
  """constructor
54
54
 
55
55
  :param server: Tango server implementation
56
- :type server: :class:`tango.Device_4Impl`
56
+ :type server: :class:`tango.LatestDeviceImpl`
57
57
  :param command: Thread command
58
58
  :type command: :obj:`str`
59
59
  :param finalState: Final State Code
@@ -62,7 +62,7 @@ class CommandThread(Thread):
62
62
  :type args: :obj:`list` <:obj:`str`>
63
63
  """
64
64
  Thread.__init__(self)
65
- #: (:class:`tango.Device_4Impl`) tango server
65
+ #: (:class:`tango.LatestDeviceImpl`) tango server
66
66
  self.server = server
67
67
  #: (:obj:`__callable__`) command
68
68
  self.command = getattr(server.tdw, command)
@@ -102,7 +102,7 @@ class CommandThread(Thread):
102
102
  self.dp.state()
103
103
 
104
104
 
105
- class NXSDataWriter(tango.Device_4Impl):
105
+ class NXSDataWriter(tango.LatestDeviceImpl):
106
106
 
107
107
  """ Tango Server to store data in H5 files
108
108
 
@@ -123,7 +123,7 @@ class NXSDataWriter(tango.Device_4Impl):
123
123
  :param name: device name
124
124
  :type name: :obj:`str`
125
125
  """
126
- tango.Device_4Impl.__init__(self, cl, name)
126
+ tango.LatestDeviceImpl.__init__(self, cl, name)
127
127
  self.debug_stream("In __init__()")
128
128
  if not hasattr(self, "lock"):
129
129
  #: (:class:`threading.Lock`) thread lock
@@ -216,7 +216,7 @@ class NXSDataWriter(tango.Device_4Impl):
216
216
  with self.lock:
217
217
  if state is not None:
218
218
  self.state_flag = state
219
- tango.Device_4Impl.set_state(self, self.state_flag)
219
+ tango.LatestDeviceImpl.set_state(self, self.state_flag)
220
220
 
221
221
  def dev_state(self):
222
222
  """ dev_state method
@@ -225,10 +225,10 @@ class NXSDataWriter(tango.Device_4Impl):
225
225
  :rtype: :class:`tango.DevState`
226
226
  """
227
227
  with self.lock:
228
- tango.Device_4Impl.set_state(self, self.state_flag)
228
+ tango.LatestDeviceImpl.set_state(self, self.state_flag)
229
229
  if self.state_flag != tango.DevState.ALARM:
230
- tango.Device_4Impl.dev_state(self)
231
- return tango.Device_4Impl.get_state(self)
230
+ tango.LatestDeviceImpl.dev_state(self)
231
+ return tango.LatestDeviceImpl.get_state(self)
232
232
 
233
233
  def always_executed_hook(self):
234
234
  """ Always excuted hook method
@@ -32,7 +32,7 @@ from .EAttribute import EAttribute
32
32
  from .EStrategy import EStrategy
33
33
  from .ELink import ELink
34
34
  from .H5Elements import (
35
- EDoc, ESymbol, EDimensions, EDim, EFile)
35
+ EDoc, ESymbol, EDimensions, EDim, EFile, EFilter)
36
36
  from .DataSourceFactory import DataSourceFactory
37
37
  from .ThreadPool import ThreadPool
38
38
  from .InnerXMLParser import InnerXMLHandler
@@ -65,7 +65,7 @@ class NexusXMLHandler(sax.ContentHandler):
65
65
  :type globalJSON: \
66
66
  : :obj:`dict` <:obj:`str`, :obj:`dict` <:obj:`str`, any>>
67
67
  :param streams: tango-like steamset class
68
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
68
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
69
69
  :param reloadmode: reload mode
70
70
  :type reloadmode: :obj: `bool`
71
71
  """
@@ -121,7 +121,7 @@ class NexusXMLHandler(sax.ContentHandler):
121
121
  'symbols': Element, 'symbol': ESymbol,
122
122
  'dimensions': EDimensions, 'dim': EDim,
123
123
  'enumeration': Element, 'item': Element,
124
- 'strategy': EStrategy
124
+ 'strategy': EStrategy, 'filter': EFilter
125
125
  }
126
126
 
127
127
  #: (:obj:`list` <:obj:`dict` <:obj:`str`, :obj:`str` > >) \
@@ -173,7 +173,7 @@ class NexusXMLHandler(sax.ContentHandler):
173
173
  #: (:obj:`bool`) if innerparse was running
174
174
  self.__inner = False
175
175
 
176
- #: (:class:`StreamSet` or :class:`tango.Device_4Impl`) stream set
176
+ #: (:class:`StreamSet` or :class:`tango.LatestDeviceImpl`) stream set
177
177
  self._streams = streams
178
178
 
179
179
  def __last(self):
nxswriter/PyEvalSource.py CHANGED
@@ -48,7 +48,7 @@ class PyEvalSource(DataSource):
48
48
 
49
49
  :brief: It cleans all member variables
50
50
  :param streams: tango-like steamset class
51
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
51
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
52
52
  :param name: datasource name
53
53
  :type name: :obj:`str`
54
54
  """
nxswriter/Release.py CHANGED
@@ -21,4 +21,4 @@
21
21
 
22
22
 
23
23
  #: package version
24
- __version__ = "3.8.2"
24
+ __version__ = "3.10.0"
nxswriter/StreamSet.py CHANGED
@@ -37,7 +37,7 @@ class StreamSet(object):
37
37
  """ streamset constractor
38
38
 
39
39
  :param streams: tango-like steamset class
40
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
40
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
41
41
  """
42
42
 
43
43
  #: (:class:`tango.log4tango.TangoStream`) Tango fatal log stream
@@ -93,7 +93,7 @@ class TangoDataWriter(object):
93
93
 
94
94
  :brief: It initialize the data writer for the H5 output file
95
95
  :param server: Tango server
96
- :type server: :class:`tango.Device_4Impl`
96
+ :type server: :class:`tango.LatestDeviceImpl`
97
97
  """
98
98
  #: (:obj:`str`) output file name and optional nexus parent path
99
99
  self.__parent = ""
@@ -181,7 +181,7 @@ class TangoDataWriter(object):
181
181
  #: (:obj:`dict` < :obj:`str`, :obj:`str`>) file time stamps
182
182
  self.__filetimes = {}
183
183
 
184
- #: (:class:`StreamSet` or :class:`tango.Device_4Impl`) stream set
184
+ #: (:class:`StreamSet` or :class:`tango.LatestDeviceImpl`) stream set
185
185
  self._streams = StreamSet(weakref.ref(server) if server else None)
186
186
 
187
187
  #: (:obj:`bool`) skip acquisition flag
nxswriter/TangoSource.py CHANGED
@@ -57,7 +57,7 @@ class ProxyTools(object):
57
57
  :param device: tango device
58
58
  :type device: :obj:`str`
59
59
  :param streams: tango-like steamset class
60
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
60
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
61
61
  :param maxcount: a number of tries
62
62
  :type maxcount: :obj:`int`
63
63
  :returns: proxy if proxy is set up
@@ -120,7 +120,7 @@ class TangoSource(DataSource):
120
120
 
121
121
  :brief: It cleans all member variables
122
122
  :param streams: tango-like steamset class
123
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
123
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
124
124
  :param name: datasource name
125
125
  :type name: :obj:`str`
126
126
  """
@@ -451,7 +451,7 @@ class TgGroup(object):
451
451
  :param counter: counts of steps
452
452
  :type counter: :obj:`int`
453
453
  :param streams: tango-like steamset class
454
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
454
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
455
455
  """
456
456
 
457
457
  #: (:class:`threading.Lock`) threading lock
@@ -460,7 +460,7 @@ class TgGroup(object):
460
460
  self.counter = counter
461
461
  #: (:obj:`dict` <:obj:`str`, :class:`TgDevice`> ) TANGO devices
462
462
  self.devices = {}
463
- #: (:class:`StreamSet` or :class:`tango.Device_4Impl`) stream set
463
+ #: (:class:`StreamSet` or :class:`tango.LatestDeviceImpl`) stream set
464
464
  self._streams = streams
465
465
 
466
466
  def getDevice(self, device):
@@ -631,7 +631,7 @@ class TgDevice(object):
631
631
  :param proxy: device proxy
632
632
  :type proxy: :class:`tango.DeviceProxy`
633
633
  :param streams: tango-like steamset class
634
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
634
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
635
635
  """
636
636
 
637
637
  #: (:obj:`str`) tango device name
@@ -647,7 +647,7 @@ class TgDevice(object):
647
647
  self.commands = []
648
648
  #: (:class:`tango.DeviceProxy`) device proxy
649
649
  self.proxy = proxy
650
- #: (:class:`StreamSet` or :class:`tango.Device_4Impl`) stream set
650
+ #: (:class:`StreamSet` or :class:`tango.LatestDeviceImpl`) stream set
651
651
  self._streams = streams
652
652
 
653
653
  def setMember(self, member):
@@ -696,7 +696,7 @@ class TgMember(object):
696
696
  :param encoding: encoding type of Tango DevEncoded variables
697
697
  :type encoding: :obj:`str`
698
698
  :param streams: tango-like steamset class
699
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
699
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
700
700
  """
701
701
  #: (:obj:`str`) name of data record
702
702
  self.name = name
@@ -712,7 +712,7 @@ class TgMember(object):
712
712
  self.__da = None
713
713
  #: (:class:`tango.CommandInfo`) input command data
714
714
  self.__cd = None
715
- #: (:class:`StreamSet` or :class:`tango.Device_4Impl`) stream set
715
+ #: (:class:`StreamSet` or :class:`tango.LatestDeviceImpl`) stream set
716
716
  self._streams = streams
717
717
 
718
718
  def reset(self):
nxswriter/ThreadPool.py CHANGED
@@ -42,7 +42,7 @@ class ThreadPool(object):
42
42
  :param numberOfThreads: number of threads
43
43
  :type numberOfThreads: :obj:`int`
44
44
  :param streams: tango-like steamset class
45
- :type streams: :class:`StreamSet` or :class:`tango.Device_4Impl`
45
+ :type streams: :class:`StreamSet` or :class:`tango.LatestDeviceImpl`
46
46
  :param maxruntime: maxruntime
47
47
  :type maxruntime: :obj:`int`
48
48
  """
@@ -58,7 +58,7 @@ class ThreadPool(object):
58
58
  #: list of the threads related to the appended elements
59
59
  self.__threadList = []
60
60
 
61
- #: (:class:`StreamSet` or :class:`tango.Device_4Impl`) stream set
61
+ #: (:class:`StreamSet` or :class:`tango.LatestDeviceImpl`) stream set
62
62
  self._streams = streams
63
63
 
64
64
  #: (:obj:`float`) maximal runtime
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nxswriter
3
- Version: 3.8.2
3
+ Version: 3.10.0
4
4
  Summary: Nexus Data writer implemented as a Tango Server
5
5
  Home-page: https://github.com/nexdatas/nxsdatawriter
6
6
  Author: Jan Kotanski, Eugen Wintersberger , Halil Pasic
@@ -22,9 +22,9 @@ Classifier: Programming Language :: Python :: 3.7
22
22
  Classifier: Programming Language :: Python :: 3.8
23
23
  Classifier: Programming Language :: Python :: 3.9
24
24
  Classifier: Programming Language :: Python :: 3.10
25
- Requires-Dist: fabio
26
25
  Requires-Dist: lxml
27
26
  Requires-Dist: numpy (>1.6.0)
27
+ Requires-Dist: nxstools (>=3.50.0)
28
28
  Requires-Dist: pytz
29
29
 
30
30
  Welcome to NXSDataWriter's documentation!
@@ -93,7 +93,7 @@ Extract sources and run
93
93
  Debian packages
94
94
  """""""""""""""
95
95
 
96
- Debian `bullseye`, `buster` or Ubuntu `focal`, `bionic` packages can be found in the HDRI repository.
96
+ Debian `bookworm`, `bullseye`, `buster` or Ubuntu `lunar`, `jammy`, `focal` packages can be found in the HDRI repository.
97
97
 
98
98
  To install the debian packages, add the PGP repository key
99
99
 
@@ -108,7 +108,7 @@ and then download the corresponding source list
108
108
  .. code-block:: console
109
109
 
110
110
  $ cd /etc/apt/sources.list.d
111
- $ wget http://repos.pni-hdri.de/bullseye-pni-hdri.list
111
+ $ wget http://repos.pni-hdri.de/bookworm-pni-hdri.list
112
112
 
113
113
  To install tango server
114
114
 
@@ -0,0 +1,37 @@
1
+ nxswriter/ClientSource.py,sha256=t231lmoc1t3k15ej2KssSfuIdq83X_gYFSFWiMuB1r0,3893
2
+ nxswriter/DBaseSource.py,sha256=_w1PCBcoIFoSCOLz9vxRastPPqTGJOla2ObLxNrcrx4,9072
3
+ nxswriter/DataHolder.py,sha256=DL08NyY0FG6snsmW0-nQ7JmWJwDc5-Hy2bC4E3Uz1fk,6164
4
+ nxswriter/DataSourceFactory.py,sha256=W0IirDjsu38KKvBxFbkvv-ghvqil2JJStQ3WMxo8Kh4,4687
5
+ nxswriter/DataSourcePool.py,sha256=1bDOrHhYpG_ZFz8ut2IzkNSMeGxrCBcSCneM4h1AgDc,4574
6
+ nxswriter/DataSources.py,sha256=l40n4WTfgRjLpFsJs7JoWjsER_dCVviRI_iolQ2fENM,5303
7
+ nxswriter/DecoderPool.py,sha256=8nsKtzwyls-YLZUJAfxdGrqb2278Er1Y20NVq1XexvY,15052
8
+ nxswriter/EAttribute.py,sha256=8i3EaIQbXWkt7zGOuu1RjGIZ7slbgxIgaGJDWVyUAOU,8434
9
+ nxswriter/EField.py,sha256=ELCyQ9K6EhvLEJICnUMHzYTumMRM_b9xXHbXMqQOwgA,27653
10
+ nxswriter/EGroup.py,sha256=Y_PuTERckQXfUXGISbnpzHj7I4y2iFxM5CGByjVD6KA,4900
11
+ nxswriter/ELink.py,sha256=FO7SRF1bpJhqRzK2FBSkRHhFwH1Mw5BRCgt8X8qJbr0,8820
12
+ nxswriter/EStrategy.py,sha256=3RX8E6Ee-Klv9DGlMPvXJacdNDmuKWLQrcnuerR0IQI,3992
13
+ nxswriter/Element.py,sha256=dnIUS_U0fqJK3FxV_raQBx6qTGPT7sUFkWVzxI5YuEY,3019
14
+ nxswriter/ElementThread.py,sha256=gCZRpzjji8TRfWLkwFRXG_K55d0yUkv9Gzi2DZ22EyQ,2099
15
+ nxswriter/Errors.py,sha256=dYXtJ7rVWv59kAalNMMZO4X3SxSplhoWICeCb3_rFGc,1660
16
+ nxswriter/FElement.py,sha256=dwc9wkMjhlueIdVIPSFmELje4VHtHFwS2UwTWbJs7Is,20463
17
+ nxswriter/FetchNameHandler.py,sha256=WbIJcxB9wjUHAIgXpZOzxBBAlWMhg-zYiLw_2sxcBIY,6829
18
+ nxswriter/H5Elements.py,sha256=V5judPZZM6em5SgjILwZDfnND8Mk7JntAFIivAkgqL8,7420
19
+ nxswriter/InnerXMLParser.py,sha256=Cr5Ih-51LGi8sKQi1qUUikL2K5hjwwilJo-j1kWHgds,4493
20
+ nxswriter/Metadata.py,sha256=Qg5KdlreERGG5CTZrCRAJXwBXxg96toyZ8wkknmdB3s,3668
21
+ nxswriter/NXSFromXML.py,sha256=932BivWZnf-3tnIkbpSRFwfGV0PTwcT9pYb2FMmVd_4,9077
22
+ nxswriter/NXSWriter.py,sha256=raHykC9mpUXU8pPtsqePuz3CI-24qYjIUSoyux2zCgo,31345
23
+ nxswriter/NexusXMLHandler.py,sha256=QxSB6Nwi-6ZWR0SxTOojfcF99kN4MBRVNIGKeN7p2Ug,13841
24
+ nxswriter/PyEvalSource.py,sha256=7-7Gc2_3CGd3XMHD3LBPCBOZx4Q6b1guzt1xgrSLxMs,11234
25
+ nxswriter/Release.py,sha256=kf1uyuQJ1eHES8zjujB2hEizPFTx07hZQHSybbFXhB0,900
26
+ nxswriter/StreamSet.py,sha256=sSvXJxoDufmt9_Xu5rFaQsp_4x9gww_zMv0NTiiyLlg,5799
27
+ nxswriter/TangoDataWriter.py,sha256=gmUyPfm6JmDXkB-Mb1XVDb9KL1_df_qPJELhC3yInOc,27792
28
+ nxswriter/TangoSource.py,sha256=jiFGUsoX2N5-i2gpBqkHi2KjmTBd46TI22Cjkt_2btw,29410
29
+ nxswriter/ThreadPool.py,sha256=TKvOStVUUyuyHowk0MRaBM4GmRKtl0VPVVPdFHu332M,6039
30
+ nxswriter/Types.py,sha256=CY_qw5-pbbDutRErgA6hbUTh903QA_IXc-CGSfuBje8,7676
31
+ nxswriter/__init__.py,sha256=M0w3HGjZgfdqjMdQNaLcq5jazqQeRekx84YSbQCA8-0,1760
32
+ nxswriter-3.10.0.data/scripts/NXSDataWriter,sha256=wO3opCCjYttfrY7CITNXHvirXv5W6rIQTY7vX5PmioI,905
33
+ nxswriter-3.10.0.data/scripts/nxsfromxml,sha256=qxnJUtV_ueA3lGnne8ltaOF6yF5YtmzeFLIl3NWkAq8,61
34
+ nxswriter-3.10.0.dist-info/METADATA,sha256=98YSp4qHj42JpEtIO3-sfsuCui_FHSGYLnOxufIu_xE,8876
35
+ nxswriter-3.10.0.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
36
+ nxswriter-3.10.0.dist-info/top_level.txt,sha256=29dYcOYN2MVz1NKpwobc4Zl4yjhd4VB62LDSuSy7x0Y,10
37
+ nxswriter-3.10.0.dist-info/RECORD,,
@@ -1,37 +0,0 @@
1
- nxswriter/ClientSource.py,sha256=P5jWONEfSVubRQQWPaYVLpz_wFVvsPsvNtn3yre_P98,3889
2
- nxswriter/DBaseSource.py,sha256=P5Paznmcumdf6eEOnoRrrWsfny85itdZ-jjDD2IimAY,9068
3
- nxswriter/DataHolder.py,sha256=Ig9vQ2ZWfzSulZzGmvBZaNjduaYYfcFDPzuu7Kk95dk,6156
4
- nxswriter/DataSourceFactory.py,sha256=b4Mrk4gFgwZnjk8M_wgcCA46kgrncgbowT7mAwF9pMA,4683
5
- nxswriter/DataSourcePool.py,sha256=1bDOrHhYpG_ZFz8ut2IzkNSMeGxrCBcSCneM4h1AgDc,4574
6
- nxswriter/DataSources.py,sha256=7F2tx7tvk1xuygmORuIyLNuqqiwRvl3FUf2rI_l8vHE,5295
7
- nxswriter/DecoderPool.py,sha256=8nsKtzwyls-YLZUJAfxdGrqb2278Er1Y20NVq1XexvY,15052
8
- nxswriter/EAttribute.py,sha256=yIwvpfgAqhB1Dvl-kLNe_dvC2WdRIwWac-3F4kUky8M,8599
9
- nxswriter/EField.py,sha256=RmraIdJkZDKtVD2mJWgpWMxPeH9AVYwVxD9oHdNJFMw,26261
10
- nxswriter/EGroup.py,sha256=fbvLyxa3hl_bxXLNaefDPWDOeUUcNNHSXozOFy-obaU,4896
11
- nxswriter/ELink.py,sha256=mzLGqRU-6gtFFRds2SJU8DZ62FeSDCwN8KMA33zZxHE,8816
12
- nxswriter/EStrategy.py,sha256=x9wzX7ra97WbZ8v-C_rQxInai6KuvYsuhpy22K3Jyug,4000
13
- nxswriter/Element.py,sha256=j8QSzD_ZJmVjq-FQepuq249Cw5_MVIh1ImbcWq3Hj_g,3011
14
- nxswriter/ElementThread.py,sha256=gCZRpzjji8TRfWLkwFRXG_K55d0yUkv9Gzi2DZ22EyQ,2099
15
- nxswriter/Errors.py,sha256=dYXtJ7rVWv59kAalNMMZO4X3SxSplhoWICeCb3_rFGc,1660
16
- nxswriter/FElement.py,sha256=XmoG3a9T7qO3mQtfy8iDVER1maBevBb-4AQ-6Gd2l1w,20455
17
- nxswriter/FetchNameHandler.py,sha256=fNeepRuifiCVHPg-pVObsyS3M4Fn4K4drDmm9Mtsloc,6821
18
- nxswriter/H5Elements.py,sha256=sL9DDG8qXBQIydfAvgvw-r0FtQ0zAHD7XF-KSk4DKgM,6035
19
- nxswriter/InnerXMLParser.py,sha256=Cr5Ih-51LGi8sKQi1qUUikL2K5hjwwilJo-j1kWHgds,4493
20
- nxswriter/Metadata.py,sha256=Qg5KdlreERGG5CTZrCRAJXwBXxg96toyZ8wkknmdB3s,3668
21
- nxswriter/NXSFromXML.py,sha256=932BivWZnf-3tnIkbpSRFwfGV0PTwcT9pYb2FMmVd_4,9077
22
- nxswriter/NXSWriter.py,sha256=Wef5JoNwqI0KJf2M7P8XGPFQMCp_GOXt8dKh1D6nEdo,31313
23
- nxswriter/NexusXMLHandler.py,sha256=fiHvkxREcxKttAh4kDPXxrTU4YVT7bpMHPDam2IXLmg,13805
24
- nxswriter/PyEvalSource.py,sha256=CML8KG3-3QVfXX_K2cDJUnakguYAplQ0DjQMdkyl2bA,11230
25
- nxswriter/Release.py,sha256=C7pxRC_86dg0RtzbW-SqD6OYUz-0vN3mNu0OcTGT4nA,899
26
- nxswriter/StreamSet.py,sha256=yAEhCuSCw2eMK44NnqyoQ1SzUu_rAKg5-nVUS4S54jc,5795
27
- nxswriter/TangoDataWriter.py,sha256=XF9biHTPku6USJ7enhNeSwNSBvfLruaM4g1-1wMFWHg,27784
28
- nxswriter/TangoSource.py,sha256=CoE-W7QYdUlcDuCMgd1Cbrsq48kfRgOqRmEQzPuBYfI,29378
29
- nxswriter/ThreadPool.py,sha256=lpcVEOFZzrXMstrZa7sV73cjEUPFiEqsGT9rG-DZtLU,6031
30
- nxswriter/Types.py,sha256=CY_qw5-pbbDutRErgA6hbUTh903QA_IXc-CGSfuBje8,7676
31
- nxswriter/__init__.py,sha256=M0w3HGjZgfdqjMdQNaLcq5jazqQeRekx84YSbQCA8-0,1760
32
- nxswriter-3.8.2.data/scripts/NXSDataWriter,sha256=wO3opCCjYttfrY7CITNXHvirXv5W6rIQTY7vX5PmioI,905
33
- nxswriter-3.8.2.data/scripts/nxsfromxml,sha256=qxnJUtV_ueA3lGnne8ltaOF6yF5YtmzeFLIl3NWkAq8,61
34
- nxswriter-3.8.2.dist-info/METADATA,sha256=60jYZhRDCtcvzREsGehIimCuoR_0a0pXS2vbxbg50sI,8840
35
- nxswriter-3.8.2.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
36
- nxswriter-3.8.2.dist-info/top_level.txt,sha256=29dYcOYN2MVz1NKpwobc4Zl4yjhd4VB62LDSuSy7x0Y,10
37
- nxswriter-3.8.2.dist-info/RECORD,,