Skip to content

Commit

Permalink
Fix check for scalar binary result (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
rho-novatron authored Dec 17, 2024
1 parent 55b3218 commit c0f9ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h5pyd/_hl/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ def __getitem__(self, args, new_dtype=None):
req = "/datasets/" + self.id.uuid + "/value"
rsp = self.GET(req, format="binary")

if isinstance(rsp, bytes):
if type(rsp) in (bytes, bytearray):
# got binary response
self.log.info("got binary response for scalar selection")
# arr = numpy.frombuffer(rsp, dtype=new_dtype)
Expand Down

0 comments on commit c0f9ea7

Please sign in to comment.