emmi.utils.aistore_utils

Functions

group_data_by_paths(samples)

Groups a list of all aistore objects by their path such that those in the same folder belong together.

Module Contents

emmi.utils.aistore_utils.group_data_by_paths(samples)

Groups a list of all aistore objects by their path such that those in the same folder belong together. :param samples: List of all aistore objects of type ‘Object’.

Returns:

A map from paths to grouped data, where grouped data is represented by a dictionary, mapping the filename to the respective aistore object.

Parameters:

samples (list[aistore.sdk.obj.object.Object])

Return type:

dict[str, dict[str, aistore.sdk.obj.object.Object]]