Skip to content

Commit 15fe7ae

Browse files
authored
waveform: Add basic AnalogWaveform (#4)
* Add basic AnalogWaveform * waveform: Add slots and more properties * waveform: Add more error tests * waveform: Replace from_iter with support for array-like objects * waveform: Add from_array_2d and heavily refactor init method * waveform: Fix type inference for constructor and remove create() * waveform: Set refcheck=False when resizing array * tests: Use typing_extensions for assert_type on older Pythons * waveform: Delete create() method * waveform: Validate dtype and run doctests * tests: Add ndarray_with_mismatched_dtype tests * tests: Add invalid type tests for extended properties * waveform: Fix Python 3.9 errors * waveform: Fix int-vs-long mismatch * waveform: Delete _scaling.py
1 parent 77a431f commit 15fe7ae

File tree

7 files changed

+1282
-1
lines changed

7 files changed

+1282
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ line-length = 100
3131

3232
[tool.pytest.ini_options]
3333
addopts = "--doctest-modules --strict-markers"
34-
testpaths = ["tests"]
34+
testpaths = ["src/nitypes", "tests"]
3535

3636
[build-system]
3737
requires = ["poetry>=1.2"]

src/nitypes/waveform/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""Waveform data types for NI Python APIs."""
2+
3+
from nitypes.waveform._analog_waveform import AnalogWaveform
4+
from nitypes.waveform._extended_properties import (
5+
ExtendedPropertyDictionary,
6+
ExtendedPropertyValue,
7+
)
8+
9+
__all__ = [
10+
"AnalogWaveform",
11+
"ExtendedPropertyDictionary",
12+
"ExtendedPropertyValue",
13+
]

0 commit comments

Comments
 (0)