Skip to content

Commit ea9ac44

Browse files
mjohanse-emrMichael Johansen
andauthored
Update nipanel to use has_start_time instead of has_timestamp. (#104)
Signed-off-by: Michael Johansen <[email protected]> Co-authored-by: Michael Johansen <[email protected]>
1 parent fbd815c commit ea9ac44

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ protobuf = {version=">=4.21"}
1313
ni-measurement-plugin-sdk = {version=">=2.3"}
1414
typing-extensions = ">=4.13.2"
1515
streamlit = ">=1.24"
16-
nitypes = {version=">=0.1.0dev2", allow-prereleases=true}
16+
nitypes = {version=">=0.1.0dev3", allow-prereleases=true}
1717
numpy = [
1818
{ version = ">=1.22", python = ">=3.9,<3.12", markers = "implementation_name != 'pypy'" },
1919
{ version = ">=1.26", python = ">=3.12,<3.13", markers = "implementation_name != 'pypy'" },

src/nipanel/converters/protobuf_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def protobuf_message(self) -> Type[DoubleAnalogWaveform]:
106106

107107
def to_protobuf_message(self, python_value: AnalogWaveform[np.float64]) -> DoubleAnalogWaveform:
108108
"""Convert the Python AnalogWaveform to a protobuf DoubleAnalogWaveform."""
109-
if python_value.timing.has_timestamp:
109+
if python_value.timing.has_start_time:
110110
bin_datetime = convert_datetime(bt.DateTime, python_value.timing.start_time)
111111
precision_timestamp = self._pt_converter.to_protobuf_message(bin_datetime)
112112
else:

0 commit comments

Comments
 (0)