lama/registration_pipeline/validate_config.py
def validate_filetype(self):
        """
        Filetype can be specified in the elastix config section, but this intereferes with LAMA config section
        Parameters
        ----------
        config: dict
            The main config
        -------
        """
        # todo: this is a bit broke, are gloval_elx.. in optionns or config at this point
        ft = self.config.get('filetype', 'nrrd')

        if ft not in ('nrrd', 'nii'):
            logging.error("'filetype' should be 'nrrd' or 'nii")
            raise LamaConfigError()

        self.options['filetype'] = ft

        gep = self.config.get('global_elastix_params')
        gep['ResultImageFormat'] = ft

        Filetype can be specified in the elastix config section, but this intereferes with LAMA config section
        Parameters
        ----------
        config: dict
            The main config
        -------
        
Filetype can be specified in the elastix config section, but this intereferes with LAMA config section
Parameters

dict
The main config
Filetype can be specified in the elastix config section but this intereferes with LAMA config section Parameters dict The main config
def validate_filetype(self):
        ft = self.config.get('filetype', 'nrrd')
        if ft not in ('nrrd', 'nii'):
            logging.error("'filetype' should be 'nrrd' or 'nii")
            raise LamaConfigError()
        self.options['filetype'] = ft
        gep = self.config.get('global_elastix_params')
        gep['ResultImageFormat'] = ft
def validate_filetype ( self ) : ft = self . config . get ( 'filetype' , 'nrrd' ) if ft not in ( 'nrrd' , 'nii' ) : logging . error ( "'filetype' should be 'nrrd' or 'nii" ) raise LamaConfigError ( ) self . options [ 'filetype' ] = ft gep = self . config . get ( 'global_elastix_params' ) gep [ 'ResultImageFormat' ] = ft
Filetype can be specified in the elastix config section, but this intereferes with LAMA config section
Parameters
Filetype can be specified in the elastix config section but this intereferes with LAMA config section Parameters
"""
        Filetype can be specified in the elastix config section, but this intereferes with LAMA config section
        Parameters
        ----------
        config: dict
            The main config
        -------
        """ # todo: this is a bit broke, are gloval_elx.. in optionns or config at this point
self