Skip to content

Commit

Permalink
copy: accepting string input
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus committed Sep 13, 2022
1 parent c3f20bc commit 5aa9ee3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions GooseHDF5/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,11 @@ def copy(
:param expand_soft: Copy the underlying data of a link, or copy as link with the same path.
"""

if type(source_datasets) is str:
source_datasets = [source_datasets]
if type(dest_datasets) is str:
dest_datasets = [dest_datasets]

if len(source_datasets) == 0:
return

Expand Down

0 comments on commit 5aa9ee3

Please sign in to comment.