allensdk.brain_observatory.data_release_utils.metadata_utils.id_generator module

class allensdk.brain_observatory.data_release_utils.metadata_utils.id_generator.FileIDGenerator[source]

Bases: object

A class to generate a unique integer ID for each file in the data release

property dummy_value: int

Value reserved for files that are missing from the release

id_from_path(file_path: Path) int[source]

Get the unique ID for a file path. If the file has already been assigned a unique ID, return that. Otherwise, assign a unique ID to the file path and return it