Skip to content

Commit 9f063e2

Browse files
renovate[bot]Mike Prosser
andauthored
fix(deps): update python packages (#155)
* fix(deps): update python packages * rename 'units' - see ni/nitypes-python#168 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mike Prosser <Mike.Prosser@emerson.com>
1 parent ce64be8 commit 9f063e2

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

poetry.lock

Lines changed: 13 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/unit/test_waveform_conversion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,15 +295,15 @@ def _set_python_attributes(
295295
) -> None:
296296
waveform.channel_name = EXPECTED_CHANNEL_NAME
297297
if isinstance(waveform, NumericWaveform) or isinstance(waveform, Spectrum):
298-
waveform.unit_description = EXPECTED_UNITS
298+
waveform.units = EXPECTED_UNITS
299299

300300

301301
def _check_python_attributes(
302302
waveform: Union[NumericWaveform[Any, Any], DigitalWaveform[Any], Spectrum[Any]],
303303
) -> None:
304304
assert waveform.channel_name == EXPECTED_CHANNEL_NAME
305305
if isinstance(waveform, NumericWaveform) or isinstance(waveform, Spectrum):
306-
assert waveform.unit_description == EXPECTED_UNITS
306+
assert waveform.units == EXPECTED_UNITS
307307

308308

309309
def _check_protobuf_attributes(

0 commit comments

Comments
 (0)