metobs_toolkit.Dataset.import_dataset#
- Dataset.import_dataset(folder_path=None, filename='saved_dataset.pkl')[source]#
Import a Dataset instance from a (pickle) file.
- Parameters:
folder_path (str or None, optional) – The path to the folder to save the file. If None, the outputfolder from the Settings is used. The default is None.
filename (str, optional) – The name of the output file. The default is ‘saved_dataset.pkl’.
- Returns:
The Dataset instance.
- Return type:
Examples
import metobs_toolkit import os # Initialize an empty Dataset empty_dataset = metobs_toolkit.Dataset() # Import the dataset dataset=empty_dataset.import_dataset(folder_path=os.getcwd(), filename='your_saved_dataset.pkl')