ni.datastore 2.0.0.dev1__tar.gz → 2.1.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.
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/PKG-INFO +4 -4
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/README.md +1 -1
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/pyproject.toml +4 -4
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/data/_data_store_client.py +8 -5
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/data/_grpc_conversion.py +22 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/LICENSE +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/__init__.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/data/__init__.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/data/_types/__init__.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/data/_types/_error_information.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/data/_types/_outcome.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/data/_types/_published_condition.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/data/_types/_published_measurement.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/data/_types/_step.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/data/_types/_test_result.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/data/_types/py.typed +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/data/py.typed +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/__init__.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_grpc_conversion.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_metadata_store_client.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/__init__.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/_alias.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/_alias_target_type.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/_extension_schema.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/_hardware_item.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/_metadata_items.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/_operator.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/_software_item.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/_test.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/_test_adapter.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/_test_description.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/_test_station.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/_uut.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/_uut_instance.py +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/py.typed +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/py.typed +0 -0
- {ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: ni.datastore
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: APIs for publishing and retrieving data from NI Measurement Data Services
|
|
5
5
|
License: MIT
|
|
6
6
|
Keywords: datastore
|
|
@@ -24,9 +24,9 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
24
24
|
Classifier: Programming Language :: Python :: 3.14
|
|
25
25
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
26
26
|
Requires-Dist: hightime (>=1.0.0)
|
|
27
|
-
Requires-Dist: ni-measurements-data-v1-client (>=1.
|
|
27
|
+
Requires-Dist: ni-measurements-data-v1-client (>=1.3.0)
|
|
28
28
|
Requires-Dist: ni-measurements-metadata-v1-client (>=1.0.0)
|
|
29
|
-
Requires-Dist: ni-protobuf-types (>=1.
|
|
29
|
+
Requires-Dist: ni-protobuf-types (>=1.3.0)
|
|
30
30
|
Requires-Dist: protobuf (>=4.21)
|
|
31
31
|
Project-URL: Documentation, https://datastorepython.readthedocs.io/en/latest/
|
|
32
32
|
Project-URL: Repository, https://github.com/ni/datastore-python
|
|
@@ -65,7 +65,7 @@ NI created and supports this package.
|
|
|
65
65
|
## Installation
|
|
66
66
|
|
|
67
67
|
As a prerequisite to using the `ni.datastore` module, you must install Measurement Data Services
|
|
68
|
-
Software 2026
|
|
68
|
+
Software 2026 Q4 or later on your system. You can download and install this software using
|
|
69
69
|
[NI Package Manager](https://www.ni.com/en/support/downloads/software-products/download.package-manager.html).
|
|
70
70
|
|
|
71
71
|
You can directly install the `ni.datastore` package using `pip` or by listing it as a
|
|
@@ -31,7 +31,7 @@ NI created and supports this package.
|
|
|
31
31
|
## Installation
|
|
32
32
|
|
|
33
33
|
As a prerequisite to using the `ni.datastore` module, you must install Measurement Data Services
|
|
34
|
-
Software 2026
|
|
34
|
+
Software 2026 Q4 or later on your system. You can download and install this software using
|
|
35
35
|
[NI Package Manager](https://www.ni.com/en/support/downloads/software-products/download.package-manager.html).
|
|
36
36
|
|
|
37
37
|
You can directly install the `ni.datastore` package using `pip` or by listing it as a
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "ni.datastore"
|
|
3
|
-
version = "2.
|
|
3
|
+
version = "2.1.0"
|
|
4
4
|
license = "MIT"
|
|
5
5
|
description = "APIs for publishing and retrieving data from NI Measurement Data Services"
|
|
6
6
|
authors = [{name = "NI", email = "opensource@ni.com"}]
|
|
@@ -40,9 +40,9 @@ requires-poetry = '>=2.1,<3.0'
|
|
|
40
40
|
[tool.poetry.dependencies]
|
|
41
41
|
python = "^3.10"
|
|
42
42
|
protobuf = {version=">=4.21"}
|
|
43
|
-
ni-measurements-data-v1-client = { version = ">=1.
|
|
43
|
+
ni-measurements-data-v1-client = { version = ">=1.3.0", allow-prereleases = true }
|
|
44
44
|
ni-measurements-metadata-v1-client = { version = ">=1.0.0" }
|
|
45
|
-
ni-protobuf-types = { version = ">=1.
|
|
45
|
+
ni-protobuf-types = { version = ">=1.3.0", allow-prereleases = true }
|
|
46
46
|
hightime = { version = ">=1.0.0" }
|
|
47
47
|
|
|
48
48
|
[tool.poetry.group.dev.dependencies]
|
|
@@ -78,7 +78,7 @@ Sphinx = [
|
|
|
78
78
|
]
|
|
79
79
|
sphinx-rtd-theme = ">=1.0.0"
|
|
80
80
|
sphinx-autoapi = ">=1.8.4"
|
|
81
|
-
|
|
81
|
+
myst-parser = ">=4.0.1"
|
|
82
82
|
toml = ">=0.10.2"
|
|
83
83
|
|
|
84
84
|
[build-system]
|
|
@@ -227,12 +227,15 @@ class DataStoreClient:
|
|
|
227
227
|
|
|
228
228
|
- Scalar: Single float, int, str or boolean
|
|
229
229
|
- Vector: Array of float, int, str or boolean values
|
|
230
|
-
-
|
|
230
|
+
- AnalogWaveform[np.float64]: Analog waveform with double precision
|
|
231
|
+
- AnalogWaveform[np.float32]: Analog waveform with single precision
|
|
231
232
|
- DoubleXYData: XY coordinate data with double precision
|
|
232
|
-
-
|
|
233
|
-
-
|
|
234
|
-
-
|
|
235
|
-
-
|
|
233
|
+
- AnalogWaveform[np.int16]: Analog waveform with 16-bit integer precision
|
|
234
|
+
- ComplexWaveform[np.complex128]: Complex waveform with double precision
|
|
235
|
+
- ComplexWaveform[np.complex64]: Complex waveform with single precision
|
|
236
|
+
- ComplexWaveform[ComplexInt32DType]: Complex waveform with 16-bit integer precision
|
|
237
|
+
- Spectrum[np.float64]: Frequency spectrum data with double precision
|
|
238
|
+
- Spectrum[np.float32]: Frequency spectrum data with single precision
|
|
236
239
|
- DigitalWaveform: Digital waveform data
|
|
237
240
|
|
|
238
241
|
step_id: The ID of the step associated with this measurement. This
|
|
@@ -25,6 +25,12 @@ from ni.protobuf.types.vector_conversion import vector_from_protobuf, vector_to_
|
|
|
25
25
|
from ni.protobuf.types.waveform_conversion import (
|
|
26
26
|
digital_waveform_from_protobuf,
|
|
27
27
|
digital_waveform_to_protobuf,
|
|
28
|
+
float32_analog_waveform_from_protobuf,
|
|
29
|
+
float32_analog_waveform_to_protobuf,
|
|
30
|
+
float32_complex_waveform_from_protobuf,
|
|
31
|
+
float32_complex_waveform_to_protobuf,
|
|
32
|
+
float32_spectrum_from_protobuf,
|
|
33
|
+
float32_spectrum_to_protobuf,
|
|
28
34
|
float64_analog_waveform_from_protobuf,
|
|
29
35
|
float64_analog_waveform_to_protobuf,
|
|
30
36
|
float64_complex_waveform_from_protobuf,
|
|
@@ -241,6 +247,10 @@ def populate_publish_measurement_request_value(
|
|
|
241
247
|
publish_request.double_analog_waveform.CopyFrom(
|
|
242
248
|
float64_analog_waveform_to_protobuf(value)
|
|
243
249
|
)
|
|
250
|
+
elif value.dtype == np.float32:
|
|
251
|
+
publish_request.float_analog_waveform.CopyFrom(
|
|
252
|
+
float32_analog_waveform_to_protobuf(value)
|
|
253
|
+
)
|
|
244
254
|
elif value.dtype == np.int16:
|
|
245
255
|
publish_request.i16_analog_waveform.CopyFrom(int16_analog_waveform_to_protobuf(value))
|
|
246
256
|
else:
|
|
@@ -250,6 +260,10 @@ def populate_publish_measurement_request_value(
|
|
|
250
260
|
publish_request.double_complex_waveform.CopyFrom(
|
|
251
261
|
float64_complex_waveform_to_protobuf(value)
|
|
252
262
|
)
|
|
263
|
+
elif value.dtype == np.complex64:
|
|
264
|
+
publish_request.float_complex_waveform.CopyFrom(
|
|
265
|
+
float32_complex_waveform_to_protobuf(value)
|
|
266
|
+
)
|
|
253
267
|
elif value.dtype == ComplexInt32DType:
|
|
254
268
|
publish_request.i16_complex_waveform.CopyFrom(int16_complex_waveform_to_protobuf(value))
|
|
255
269
|
else:
|
|
@@ -257,6 +271,8 @@ def populate_publish_measurement_request_value(
|
|
|
257
271
|
elif isinstance(value, Spectrum):
|
|
258
272
|
if value.dtype == np.float64:
|
|
259
273
|
publish_request.double_spectrum.CopyFrom(float64_spectrum_to_protobuf(value))
|
|
274
|
+
elif value.dtype == np.float32:
|
|
275
|
+
publish_request.float_spectrum.CopyFrom(float32_spectrum_to_protobuf(value))
|
|
260
276
|
else:
|
|
261
277
|
raise TypeError(f"Unsupported Spectrum dtype: {value.dtype}")
|
|
262
278
|
elif isinstance(value, DigitalWaveform):
|
|
@@ -338,10 +354,16 @@ def convert_read_measurement_response_from_protobuf(
|
|
|
338
354
|
return digital_waveform_from_protobuf(response.digital_waveform)
|
|
339
355
|
elif read_data_type == "double_analog_waveform":
|
|
340
356
|
return float64_analog_waveform_from_protobuf(response.double_analog_waveform)
|
|
357
|
+
elif read_data_type == "float_analog_waveform":
|
|
358
|
+
return float32_analog_waveform_from_protobuf(response.float_analog_waveform)
|
|
341
359
|
elif read_data_type == "double_complex_waveform":
|
|
342
360
|
return float64_complex_waveform_from_protobuf(response.double_complex_waveform)
|
|
361
|
+
elif read_data_type == "float_complex_waveform":
|
|
362
|
+
return float32_complex_waveform_from_protobuf(response.float_complex_waveform)
|
|
343
363
|
elif read_data_type == "double_spectrum":
|
|
344
364
|
return float64_spectrum_from_protobuf(response.double_spectrum)
|
|
365
|
+
elif read_data_type == "float_spectrum":
|
|
366
|
+
return float32_spectrum_from_protobuf(response.float_spectrum)
|
|
345
367
|
elif read_data_type == "i16_analog_waveform":
|
|
346
368
|
return int16_analog_waveform_from_protobuf(response.i16_analog_waveform)
|
|
347
369
|
elif read_data_type == "i16_complex_waveform":
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/data/_types/_error_information.py
RENAMED
|
File without changes
|
|
File without changes
|
{ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/data/_types/_published_condition.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_grpc_conversion.py
RENAMED
|
File without changes
|
{ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_metadata_store_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/_extension_schema.py
RENAMED
|
File without changes
|
{ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/_hardware_item.py
RENAMED
|
File without changes
|
{ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/_metadata_items.py
RENAMED
|
File without changes
|
{ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/_operator.py
RENAMED
|
File without changes
|
{ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/_software_item.py
RENAMED
|
File without changes
|
|
File without changes
|
{ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/_test_adapter.py
RENAMED
|
File without changes
|
{ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/_test_description.py
RENAMED
|
File without changes
|
{ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/_test_station.py
RENAMED
|
File without changes
|
|
File without changes
|
{ni_datastore-2.0.0.dev1 → ni_datastore-2.1.0}/src/ni/datastore/metadata/_types/_uut_instance.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|