Skip to content

Commit

Permalink
test: Signal without value is considered dtype=float, shape=scalar
Browse files Browse the repository at this point in the history
Initializing with a 'simple' value will make 'describe()' use inference
to determine dtype and shape at runtime
  • Loading branch information
Mathias Guijarro committed Jun 5, 2024
1 parent cc4f1e3 commit 85b6561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ophyd/tests/test_signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def test_describe(bool_enum_signal):
assert "upper_ctrl_limit" in desc
assert "lower_ctrl_limit" in desc

sig = Signal(name="my_pv")
sig = Signal(name="my_pv", value="On")
sig.put("Off")
desc = sig.describe()["my_pv"]
assert desc["dtype"] == "string"
Expand Down

0 comments on commit 85b6561

Please sign in to comment.