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 (str | DataSet) – The name of the dataset or a DataSet object.
destination (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:
DataSet