HypVINN.utils.mode_config¶
- HypVINN.utils.mode_config.get_hypinn_mode(t1_path=None, t2_path=None)[source]¶
Determine the input mode for HypVINN based on the existence of T1 and T2 files.
This function checks the existence of T1 and T2 files based on the provided paths.
- Parameters:
- Returns:
ModalityModeThe input mode for HypVINN, which can be “t1t2”, “t1”, or “t2”.
- Raises:
RuntimeErrorIf neither T1 nor T2 files exist, or if the corresponding flags were passed but the files do not exist.