Skip to content

Commit

Permalink
stage 2 clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed Oct 28, 2024
1 parent 4fe1243 commit 0855626
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/hdmf_zarr/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,13 +553,10 @@ def write_group(self, **kwargs):
for link_name, sub_builder in links.items():
group_filename = self.__get_store_path(group.store)
if export_source is not None:
if group_filename != export_source:
if sub_builder.builder.source in (group_filename, export_source):
source = group_filename
else:
source = None
if sub_builder.builder.source in (group_filename, export_source):
source = group_filename
else:
source = export_source
source = None
else:
source = export_source
self.write_link(group, sub_builder, source)
Expand Down

0 comments on commit 0855626

Please sign in to comment.