rex.utilities.utilities.filename_from_h5pyd
- filename_from_h5pyd(filename_or_obj)[source]
Extract file name from h5pyd.File object
If input is not instance of
h5pyd.File
, the input is returned without any modification.- Parameters:
filename_or_obj (str | h5pyd.File) – Input that could be a file name or an
h5pyd.File
object.- Returns:
str – Name of file