Skip to content

Commit

Permalink
Fix bug on string codepath.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed Aug 24, 2023
1 parent 7ca10bc commit 17fa6d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion databroker/mongo_normalized.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ def __init__(
for key, field_metadata in descriptor["data_keys"].items():
if field_metadata["dtype"] == "string":
# Skip this if it has a dtype_str with an itemsize.
dtype_str = field_metadata().get("dtype_str")
dtype_str = field_metadata.get("dtype_str")
if dtype_str is not None:
if numpy.dtype(dtype_str).itemsize != 0:
continue
Expand Down

0 comments on commit 17fa6d5

Please sign in to comment.