Skip to content

Commit

Permalink
added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Braun committed Nov 27, 2024
1 parent 9300640 commit c89a61d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
2 changes: 1 addition & 1 deletion frappy
6 changes: 3 additions & 3 deletions src/secop_ophyd/SECoPSignal.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ def __init__(self, path: Path, secclient: AsyncFrappyClient) -> None:

if self.SECoP_type_info.max_depth > MAX_DEPTH:
warnings.warn(
f"The datatype of parameter '{path._accessible_name}' has a maximum"
f"depth of {self.SECoP_type_info.max_depth}. Tiled & Databroker only"
f"support a Depth upto {MAX_DEPTH}"
f"The datatype of parameter '{path._accessible_name}' has a maximum "
f"depth of {self.SECoP_type_info.max_depth}. Tiled & Databroker only "
f"support a Depth upto {MAX_DEPTH} "
f"dtype_descr: {self.SECoP_type_info.dtype_descr}"
)

Expand Down
12 changes: 1 addition & 11 deletions src/secop_ophyd/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def __init__(
self.array_element = array_element

def make_numpy_dtype(self) -> tuple:
return (self.name, "<b")
return (self.name, "<b1")

def make_concrete_numpy_dtype(self, value) -> tuple:
return self.make_numpy_dtype()
Expand Down Expand Up @@ -719,13 +719,3 @@ def set_reading(self, value) -> None:
StringType: "string",
BLOBType: "string",
}

SECOP2NUMPY = {
FloatRange: "<f8",
IntRange: "<i8",
ScaledInteger: "<i8",
BoolType: "<b1",
EnumType: "<i8",
StringType: "<U100",
BLOBType: "<U100",
}

0 comments on commit c89a61d

Please sign in to comment.