obsplus.utils.dataset module¶
Simple utility for DataSet.
- obsplus.utils.dataset.copy_dataset(dataset, destination=None)[source]¶
Copy a dataset to a destination.
If the destination already exists simply do nothing.
- Parameters:
dataset (
Union
[str
,DataSet
]) – The name of the dataset or a DataSet object.destination (
Union
[str
,Path
,None
]) – The destination to copy the dataset. It will be created if it doesnt exist. If None is provided use tmpfile to create a temporary directory.
- Return type:
A new dataset object which refers to the copied files.