Skip to content

Commit 88411c2

Browse files
author
Peter Braun
committed
test fix
1 parent b73636e commit 88411c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/secop_ophyd/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ def __init__(self, datatype: DataType) -> None:
579579
self.dtype_descr: list
580580

581581
# string representation of the original secop datatype
582-
self.secop_dtype_str = datatype.export_datatype()
582+
self.secop_dtype_str = str(datatype.export_datatype())
583583

584584
# Shape of Data
585585
self.shape = []

tests/test_nested.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async def test_nested_dtype_str_signal_generation(
6161

6262
assert isinstance(val, np.ndarray)
6363
assert descr["dtype"] == "array"
64-
assert descr["SECoP_dtype"] == "struct"
64+
assert "struct" in descr["SECOP_datainfo"]
6565
await nested_node.disconnect_async()
6666

6767

0 commit comments

Comments
 (0)