nussl/core/migration.py
def _load_types(expected_type, key, val):
        """Safe load for values where the value is a type in self.expected_metadata"""
        if val is not None:
            if type(val) != expected_type:
                raise SeparationException(f'Expected type {expected_type} '
                                          f'for key {key} but got {type(val)}!')
            return val
        else:
            return 'UNAVAILABLE'
Safe load for values where the value is a type in self.expected_metadata
Safe load for values where the value is a type in self.expected_metadata
Safe load for values where the value is a type in self . expected_metadata
def _load_types(expected_type, key, val):
        if val is not None:
            if type(val) != expected_type:
                raise SeparationException(f'Expected type {expected_type} '
                                          f'for key {key} but got {type(val)}!')
            return val
        else:
            return 'UNAVAILABLE'
def _load_types ( expected_type , key , val ) : if val is not None : if type ( val ) != expected_type : raise SeparationException ( f'Expected type {expected_type} ' f'for key {key} but got {type(val)}!' ) return val else : return 'UNAVAILABLE'
Safe load for values where the value is a type in self.expected_metadata
Safe load for values where the value is a type in self . expected_metadata
"""Safe load for values where the value is a type in self.expected_metadata"""
expected_type
key
val