hypernets_processor.utils.paths module
Module of helper functions for file path operations
- hypernets_processor.utils.paths.parse_sequence_path(path)
Unpacks info from raw sequence path, e.g. some/directory/SEQ20200312T135926
- Parameters:
path (str) – sequence path
- Returns:
unpacked path, containing datetime (None if not a sequence path)
- Return type:
dict
- hypernets_processor.utils.paths.relative_path(path, directory)
Return path relative to given directory
- Parameters:
path (str) – path of file relative to directory
directory (str) – path of directory
- Returns:
full file path
- Return type:
str