def _query_setup_context(self): c.metric_field = fl.comparable_metric_field() c.channel_field = fl.channel_field(blank=True, empty='--') c.default_start_date = datetime.now() - timedelta(90) c.outlier_operator_field = dict(ProductValidationSpecItem.compare_operator_field()) c.outlier_operator_field['options'] = [(op, disp) for op, disp in c.outlier_operator_field['options']\ if op in (ProductValidationSpecItem.EQUAL,\ ProductValidationSpecItem.LESS_THAN, ProductValidationSpecItem.GREATER_THAN)]
def _query_setup_context(self): c.plate_type_field = fl.all_plate_types_field() c.metric_field = fl.comparable_metric_field() c.channel_field = fl.channel_field(blank=True, empty='--') c.default_start_date = datetime.now() - timedelta(30) c.reader_field = fl.box2_field(exclude_fluidics_modules=True) c.default_group_by_plate = True c.outlier_operator_field = dict(ProductValidationSpecItem.compare_operator_field()) c.outlier_operator_field['options'] = [(op, disp) for op, disp in c.outlier_operator_field['options']\ if op in (ProductValidationSpecItem.EQUAL,\ ProductValidationSpecItem.LESS_THAN, ProductValidationSpecItem.GREATER_THAN)]