Skip to content

Commit

Permalink
Merge pull request #177 from TGSAI/fix/copy_dim_separator
Browse files Browse the repository at this point in the history
When copying MDIO file, preserve dimension separator.
  • Loading branch information
tasansal authored Feb 8, 2023
2 parents 3957ae7 + 6c9a99a commit c5c2c0e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mdio/api/convenience.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,13 @@ def copy_mdio(

if len(excludes) > 0:
data_path = "/".join(["data", excludes])
source_array = source.root[data_path]
dimension_separator = source_array._dimension_separator

zarr.empty_like(
source.root[data_path],
source_array,
store=dest_store,
path=data_path,
overwrite=overwrite,
dimension_separator=dimension_separator,
)

0 comments on commit c5c2c0e

Please sign in to comment.