def _get_parameter(self, name, eopatch):
        """ Collects the parameter either from initialization parameters or from EOPatch
        """
        if hasattr(self, name) and getattr(self, name) is not None:
            return getattr(self, name)
        if name == 'bbox' and eopatch.bbox:
            return eopatch.bbox
        if name in eopatch.meta_info:
            return eopatch.meta_info[name]
        if name == 'maxcc':
            return 1.0
        if name == 'time_difference':
            return dt.timedelta(seconds=-1)
        if name in ('size_x', 'size_y'):
            return None

        raise ValueError('Parameter {} was neither defined in initialization of {} nor is contained in '
                         'EOPatch'.format(name, self.__class__.__name__))
def _get_parameter ( self , name , eopatch ) : if hasattr ( self , name ) and getattr ( self , name ) is not None : return getattr ( self , name ) if name == 'bbox' and eopatch . bbox : return eopatch . bbox if name in eopatch . meta_info : return eopatch . meta_info [ name ] if name == 'maxcc' : return 1.0 if name == 'time_difference' : return dt . timedelta ( seconds = - 1 ) if name in ( 'size_x' , 'size_y' ) : return None raise ValueError ( 'Parameter {} was neither defined in initialization of {} nor is contained in ' 'EOPatch' . format ( name , self . __class__ . __name__ ) )
Collects the parameter either from initialization parameters or from EOPatch