brainspy.utils.io#

Library that handles loading and saving of data to a file. It is also used to create a new directory with a timestamp.

Functions

create_directory(path[, overwrite])

Checks if there exists a directory with - filepath+datetime_name , and if not it will create it and return this path.

create_directory_timestamp(path, name[, ...])

To create a directory with the given name and current timestamp if it does not already exist.

load_configs(file_name)

Loads a yaml file from the given file path.

save_configs(configs, file_name)

Formats data from a dictionary and saves it to the given yaml file.

Classes

IncludeLoader(*args, **kwargs)

Class to handle !include directives in config files.