def validate_input(): _numeric('img', ('integer', 'floating', 'complex'), shape=(-1, -1)) _levels( 'transforms', (_generic(None, 'explicit collection'), _generic(None, 'string', value_in=_utils.get_transform_names()))) _generic('output_path', 'string', ignore_none=True) _generic('fig_ext', 'string')
def validate_input(): _levels('coefficients', (_generic(None, 'explicit collection'), _numeric(None, ('integer', 'floating', 'complex'), shape=(-1, -1)))) _levels('reconstructions', (_generic(None, 'explicit collection', len_=len(coefficients)), _numeric(None, ('integer', 'floating', 'complex'), shape=(-1, -1)))) _generic('transform', 'string', value_in=_utils.get_transform_names()) _levels('fractions', (_generic(None, 'explicit collection', len_=len(coefficients)), _numeric(None, 'floating', range_='[0;1]'))) _generic('output_path', 'string', ignore_none=True) _generic('fig_ext', 'string')
def validate_input(): _numeric('img', ('integer', 'floating', 'complex'), shape=(-1, -1)) _generic('transform', 'string', value_in=_utils.get_transform_names()) _levels('fractions', (_generic(None, 'explicit collection'), _numeric(None, 'floating', range_='[0;1]')))
def validate_input(): _numeric('img', ('integer', 'floating', 'complex'), shape=(-1, -1)) _generic('transform', 'string', value_in=_utils.get_transform_names()) _numeric('fraction', 'floating', range_='[0;1]') _numeric('area_mask', 'boolean', shape=img.shape, ignore_none=True) _generic('ax', mpl.axes.Axes, ignore_none=True)