Skip to content

Commit

Permalink
fix: set default shape in NDDerivedSignal
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias Guijarro committed Nov 4, 2024
1 parent 03f465b commit d5d2a82
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ophyd/areadetector/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@

from ..device import Component, Device, DynamicDeviceComponent
from ..ophydobj import Kind, OphydObject
from ..signal import ArrayAttributeSignal, DerivedSignal, EpicsSignal, EpicsSignalRO
from ..signal import (
UNSET_VALUE,
ArrayAttributeSignal,
DerivedSignal,
EpicsSignal,
EpicsSignalRO,
)
from . import docs


Expand Down Expand Up @@ -92,6 +98,9 @@ def __init__(
if isinstance(num_dimensions, str):
num_dimensions = getattr(parent, num_dimensions)
self._num_dimensions = num_dimensions
kwargs.setdefault("value", UNSET_VALUE)
kwargs.setdefault("dtype", None)
kwargs.setdefault("shape", shape)
super().__init__(derived_from=derived_from, parent=parent, **kwargs)

@property
Expand Down

0 comments on commit d5d2a82

Please sign in to comment.