gammapy/estimators/flux_map.py
def _validate_type(maps, sed_type):
        """Check that map input is valid and correspond to one of the SED type."""
        try:
            required = set(REQUIRED_MAPS[sed_type])
        except:
            raise ValueError(f"Unknown SED type.")

        if not required.issubset(maps.keys()):
            missing = required.difference(maps.keys())
            raise ValueError(
                "Missing maps for sed type '{}':" " {}".format(sed_type, missing)
            )
Check that map input is valid and correspond to one of the SED type.
Check that map input is valid and correspond to one of the SED type.
Check that map input is valid and correspond to one of the SED type .
def _validate_type(maps, sed_type):
        try:
            required = set(REQUIRED_MAPS[sed_type])
        except:
            raise ValueError(f"Unknown SED type.")
        if not required.issubset(maps.keys()):
            missing = required.difference(maps.keys())
            raise ValueError(
                "Missing maps for sed type '{}':" " {}".format(sed_type, missing)
            )
def _validate_type ( maps , sed_type ) : try : required = set ( REQUIRED_MAPS [ sed_type ] ) except : raise ValueError ( f"Unknown SED type." ) if not required . issubset ( maps . keys ( ) ) : missing = required . difference ( maps . keys ( ) ) raise ValueError ( "Missing maps for sed type '{}':" " {}" . format ( sed_type , missing ) )
Check that map input is valid and correspond to one of the SED type.
Check that map input is valid and correspond to one of the SED type .
"""Check that map input is valid and correspond to one of the SED type."""
maps
sed_type