Note
This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.
brainprep.utils.make_run_id¶
- brainprep.utils.make_run_id(filename)[source]¶
Generate a deterministic identifier and a 5-digit short code from a filename.
This function computes a UUIDv5 using the URL namespace and the provided filename, converts the UUID to its integer representation, and returns both the full integer-based code and its first five digits. The result is stable and reproducible: the same filename always produces the same values.
- Parameters:
- filenamestr
The filename used as the seed for generating the identifiers.
- Returns:
- codestr
The full integer representation of the UUIDv5 derived from the filename.
- short_codestr
The first five digits of the UUID-derived code, used as a compact ID.