Skip to content

Commit

Permalink
correctly infer dtype (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtritt committed Apr 15, 2019
1 parent 4d996b5 commit c83cc2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hdmf/build/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ def __add_containers(self, builder, spec, value, build_manager, source, parent_c
builder.set_link(LinkBuilder(rendered_obj, name, builder))
elif isinstance(spec, DatasetSpec):
if rendered_obj.dtype is None and spec.dtype is not None:
val, dtype = self.convert_dtype(spec, None)
val, dtype = self.convert_dtype(spec, rendered_obj.data)
rendered_obj.dtype = dtype
builder.set_dataset(rendered_obj)
else:
Expand Down

0 comments on commit c83cc2b

Please sign in to comment.