spectrochempy.Project.add_dataset¶
- Project.add_dataset(dataset, name=None)[source]¶
Add a single dataset to the current project.
- Parameters
dataset (|NDDataset|) – Datasets to add. The name of the entry will be the name of the dataset, except if parameter
name
is defined.name (str, optional) – If provided the name will be used to name the entry in the project.
See also
add_datasets
Add several datasets to the current project.
Examples
>>> ds1 = scp.NDDataset([1, 2, 3]) >>> proj = scp.Project() >>> proj.add_dataset(ds1, name='Toto')