Skip to content

Commit

Permalink
Merge pull request #729 from NeurodataWithoutBorders/bug/write_link
Browse files Browse the repository at this point in the history
use specified name to name links
  • Loading branch information
ajtritt authored Nov 14, 2018
2 parents 4f3d3c6 + 56a932f commit fe41eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pynwb/form/build/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ def __add_containers(self, builder, spec, value, build_manager, source, parent_c
if value.container_source != parent_container.container_source or\
value.parent is not parent_container:
rendered_obj = build_manager.build(value, source=source)
builder.set_link(LinkBuilder(rendered_obj, parent=builder))
builder.set_link(LinkBuilder(rendered_obj, name=spec.name, parent=builder))
else:
raise ValueError("Found unmodified Container with no source - '%s' with parent '%s'" %
(value.name, parent_container.name))
Expand Down

0 comments on commit fe41eac

Please sign in to comment.