validate_compound_condition

sofia_redux.instruments.forcast.hdcheck.validate_compound_condition(header, conditions, dripconf=False)[source]

Checks the AND/OR conditions of keyword definitions is met by header

Parameters:
headerastropy.io.fits.header.Header
conditionslist of list of tuple of str
dripconfbool, optional

Will check the configuration file for keywords in addition to the header

Returns:
bool

True if the condition is met, False otherwise