(nside, nest=False)
Raises exception is nside is not valid
Raises exception is nside is not valid
Raises exception is nside is not valid
def check_nside(nside, nest=False):
    """Raises exception is nside is not valid"""
    if not np.all(isnsideok(nside, nest=nest)):
        raise ValueError(
            "%s is not a valid nside parameter (must be a power of 2, less than 2**30)"
            % str(nside)
        )
def check_nside ( nside , nest = False ) : if not np . all ( isnsideok ( nside , nest = nest ) ) : raise ValueError ( "%s is not a valid nside parameter (must be a power of 2, less than 2**30)" % str ( nside ) )