Input/Output

Simulation Data

Contains utilities for managing simulation data.

This module defines utility functions for managing inputs and outputs for simulation data.

deeprootgen.io.simulation_data.load_data_from_file(list_of_contents: list, list_of_names: list) tuple[source]

Load the run history from a CSV file.

Args:
list_of_contents (list):

The list of file contents.

list_of_names (list):

The list of file names.

Returns:
tuple:

The loaded data and toast component message.

deeprootgen.io.simulation_data.s3_upload_file(file_name: str, object_name: str, bucket_name: str = 'data') bool[source]

Upload a file to an S3 bucket.

Args:
file_name (str):

The file to upload.

object_name (str):

The S3 object name.

bucket_name (str, optional):

The bucket name. Defaults to “data”.

Returns:
bool:

The client response.