nxswriter 3.14.0__py3-none-any.whl → 3.15.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/Release.py CHANGED
@@ -21,4 +21,4 @@
21
21
 
22
22
 
23
23
  #: package version
24
- __version__ = "3.14.0"
24
+ __version__ = "3.15.0"
nxswriter/Types.py CHANGED
@@ -27,6 +27,18 @@ if sys.version_info > (3,):
27
27
  long = int
28
28
 
29
29
 
30
+ try:
31
+ _npver = numpy.version.version.split(".")
32
+ NPMAJOR = int(_npver[0])
33
+ if NPMAJOR > 1:
34
+ npstring = numpy.bytes_
35
+ else:
36
+ npstring = numpy.string_
37
+ except Exception:
38
+ NPMAJOR = 1
39
+ npstring = numpy.string_
40
+
41
+
30
42
  def nptype(dtype):
31
43
  """ converts to numpy types
32
44
 
@@ -159,7 +171,7 @@ class NTP(object):
159
171
  except IndexError:
160
172
  if hasattr(array, "shape") and len(array.shape) == 0:
161
173
  rank = 0
162
- if type(array) in [numpy.string_, numpy.str_]:
174
+ if type(array) in [npstring, numpy.str_]:
163
175
  pythonDType = "str"
164
176
  elif hasattr(array, "dtype"):
165
177
  pythonDType = str(array.dtype)
@@ -170,7 +182,7 @@ class NTP(object):
170
182
  shape.append(len(array))
171
183
 
172
184
  else:
173
- if type(array) in [numpy.string_, numpy.str_]:
185
+ if type(array) in [npstring, numpy.str_]:
174
186
  pythonDType = "str"
175
187
  elif hasattr(array, "dtype"):
176
188
  pythonDType = str(array.dtype)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nxswriter
3
- Version: 3.14.0
3
+ Version: 3.15.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
@@ -23,6 +23,7 @@ Classifier: Programming Language :: Python :: 3.9
23
23
  Classifier: Programming Language :: Python :: 3.10
24
24
  Classifier: Programming Language :: Python :: 3.11
25
25
  Classifier: Programming Language :: Python :: 3.12
26
+ Classifier: Programming Language :: Python :: 3.13
26
27
  Requires-Dist: lxml
27
28
  Requires-Dist: numpy (>1.6.0)
28
29
  Requires-Dist: nxstools (>=3.50.0)
@@ -94,7 +95,7 @@ Extract sources and run
94
95
  Debian packages
95
96
  """""""""""""""
96
97
 
97
- Debian `bookworm`, `bullseye`, `buster` or Ubuntu `oracular`, `noble`, `jammy` packages can be found in the HDRI repository.
98
+ Debian `bookworm`, `bullseye`, `buster` or Ubuntu `plucky`, `noble`, `jammy` packages can be found in the HDRI repository.
98
99
 
99
100
  To install the debian packages, add the PGP repository key
100
101
 
@@ -23,16 +23,16 @@ nxswriter/NXSFromXML.py,sha256=932BivWZnf-3tnIkbpSRFwfGV0PTwcT9pYb2FMmVd_4,9077
23
23
  nxswriter/NXSWriter.py,sha256=raHykC9mpUXU8pPtsqePuz3CI-24qYjIUSoyux2zCgo,31345
24
24
  nxswriter/NexusXMLHandler.py,sha256=IrZ2mWLuovdBIHcWTqKmr4HZxpMEWLun8A94O6pavr8,14131
25
25
  nxswriter/PyEvalSource.py,sha256=7-7Gc2_3CGd3XMHD3LBPCBOZx4Q6b1guzt1xgrSLxMs,11234
26
- nxswriter/Release.py,sha256=qNmln5Ifl--7uY5SpcQDkGFLFbqPVDYTmjV_3yQqLQI,900
26
+ nxswriter/Release.py,sha256=wnY92t-42OYEn6TDj_sULeraAF84pcdjcjLMAtFU3TU,900
27
27
  nxswriter/StreamSet.py,sha256=sSvXJxoDufmt9_Xu5rFaQsp_4x9gww_zMv0NTiiyLlg,5799
28
28
  nxswriter/TangoDataWriter.py,sha256=yP6B3TVUhpHp8OBHKYQRNNtFer9xARoakNXuro4eVv8,28725
29
29
  nxswriter/TangoSource.py,sha256=jiFGUsoX2N5-i2gpBqkHi2KjmTBd46TI22Cjkt_2btw,29410
30
30
  nxswriter/ThreadPool.py,sha256=TKvOStVUUyuyHowk0MRaBM4GmRKtl0VPVVPdFHu332M,6039
31
- nxswriter/Types.py,sha256=CY_qw5-pbbDutRErgA6hbUTh903QA_IXc-CGSfuBje8,7676
31
+ nxswriter/Types.py,sha256=haH578_GqBwWWUhPC6x9KQOubhhEOsxHdI63j0_AkdE,7906
32
32
  nxswriter/__init__.py,sha256=M0w3HGjZgfdqjMdQNaLcq5jazqQeRekx84YSbQCA8-0,1760
33
- nxswriter-3.14.0.data/scripts/NXSDataWriter,sha256=wO3opCCjYttfrY7CITNXHvirXv5W6rIQTY7vX5PmioI,905
34
- nxswriter-3.14.0.data/scripts/nxsfromxml,sha256=qxnJUtV_ueA3lGnne8ltaOF6yF5YtmzeFLIl3NWkAq8,61
35
- nxswriter-3.14.0.dist-info/METADATA,sha256=53Fc3OKmRlNatTbdcs0-lhBae1UoQkkPWLDvY_KAshY,8964
36
- nxswriter-3.14.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
37
- nxswriter-3.14.0.dist-info/top_level.txt,sha256=29dYcOYN2MVz1NKpwobc4Zl4yjhd4VB62LDSuSy7x0Y,10
38
- nxswriter-3.14.0.dist-info/RECORD,,
33
+ nxswriter-3.15.0.data/scripts/NXSDataWriter,sha256=wO3opCCjYttfrY7CITNXHvirXv5W6rIQTY7vX5PmioI,905
34
+ nxswriter-3.15.0.data/scripts/nxsfromxml,sha256=qxnJUtV_ueA3lGnne8ltaOF6yF5YtmzeFLIl3NWkAq8,61
35
+ nxswriter-3.15.0.dist-info/METADATA,sha256=iuTW0TPySfQdDF6zyFliD6mOGPW58TYnB2CtmNRJY1E,9013
36
+ nxswriter-3.15.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
37
+ nxswriter-3.15.0.dist-info/top_level.txt,sha256=29dYcOYN2MVz1NKpwobc4Zl4yjhd4VB62LDSuSy7x0Y,10
38
+ nxswriter-3.15.0.dist-info/RECORD,,