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:
t1_pathPath, optional

The path to the T1 file.

t2_pathPath, optional

The path to the T2 file.

Returns:
ModalityMode

The input mode for HypVINN, which can be “t1t2”, “t1”, or “t2”.

Raises:
RuntimeError

If neither T1 nor T2 files exist, or if the corresponding flags were passed but the files do not exist.