def __init__(self, ds_in='', T1=0, V1=0, T2=0, V2=0, T3=0, V3=0, ds_out=''): """Define input fields for plugin.""" self.fields = [ plugins.FieldDataset('ds_in', 'Temperature dataset', default=ds_in), plugins.FieldFloat('T1', 'First temperature value', default=T1), plugins.FieldCombo('V1', 'First known viscosity value', default=V1, items=methods, editable=True), plugins.FieldFloat('T2', 'Second temperature value', default=T2), plugins.FieldCombo('V2', 'Second known viscosity value', default=V2, items=methods, editable=True), plugins.FieldFloat('T3', 'Third temperature value', default=T3), plugins.FieldCombo('V3', 'Third known viscosity value', default=V3, items=methods, editable=True), plugins.FieldDataset('ds_out', 'Output dataset name', default=ds_out) ]
def __init__(self, ds_in='', method='hanning', window=5, ds_out='', end_index=0): """Define input fields for plugin.""" self.fields = [ plugins.FieldDataset('ds_in', 'Dataset to be smoothed', default=ds_in), plugins.FieldCombo('method', 'Smoothing method', default=method, items=('flat', 'hanning', 'hamming', 'bartlett', 'blackman', 'kaiser'), editable=False), plugins.FieldInt('window', 'Window length', default=window), plugins.FieldInt('start_index', 'Start index', minval=0, default=0), plugins.FieldInt('end_index', 'End index (0 = last)', minval=0, default=end_index), plugins.FieldDataset('ds_out', 'Output dataset name', default=ds_out) ]
def __init__(self, dataset='Line Color', sample='Line Style', space=False): """Make list of fields.""" self.fields = [ plugins.FieldCombo("dataset", descr="Datasets marking mode:", items=defvars.keys(), default=dataset), plugins.FieldCombo("sample", descr="Samples marking mode:", items=defvars.keys(), default=sample), plugins.FieldBool("space", descr="Axis positioning:", default=space) ]
def __init__(self, target=[], axis='X', val=0., search='Nearest (Fixed X)', searchRange=25, critical_x='', text='Intercept\\\\%(xlabel)s=%(x).0f\\\\%(ylabel)s=%(y)E'): """Make list of fields.""" self.fields = [ plugins.FieldDatasetMulti( "target", descr="Datasets whose curves to intercept", default=target), plugins.FieldCombo( "axis", descr="Intercept on X or Y axis", items=['X', 'Y'], default=axis), plugins.FieldFloat('val', 'Value', default=val), plugins.FieldCombo("search", descr="Place nearest", items=[ 'Nearest (Fixed X)', 'Nearest', 'Maximum', 'Minimum', 'Inflection', 'Stationary', 'None'], default=search), plugins.FieldFloat( 'searchRange', descr='Nearest search range', default=searchRange), plugins.FieldDataset('critical_x',descr="Critical search X dataset", default=critical_x), plugins.FieldText('text', 'Label text', default=text), ]
def __init__(self, ds='', ini=100., auto=False, num=20, start=-1, method='mean', ds_x='', suppress_messageboxes=False): """Define input fields for plugin.""" self.fields = [ plugins.FieldDataset('ds', 'Dataset to configure', default=ds), plugins.FieldFloat('ini', 'Initial dimension value', default=ini), plugins.FieldBool('auto', 'OR, automatic calculation based of fist points', default=auto), plugins.FieldInt('start', 'Consider 100% at X=', default=start), plugins.FieldInt('num', 'Number of point to use in auto-calc', default=num), plugins.FieldCombo('method', 'Method for auto-calc', default=method, items=('linear-regression', 'mean')), plugins.FieldDataset('ds_x', 'X Dataset for linear regression', default=ds_x), plugins.FieldBool('suppress_messageboxes', 'Suppress confirmation message boxes', default=suppress_messageboxes) ]
def __init__(self, reference_curve_full_path='/', translating_curve_1_full_path='/', translating_curve_2_full_path=None): self.fields = [ plugins.FieldWidget("reference_curve", descr="Reference curve:", widgettypes=set(['xy']), default=reference_curve_full_path), plugins.FieldWidget("translating_curve_1", descr="Translating curve 1:", widgettypes=set(['xy']), default=translating_curve_1_full_path), ] if translating_curve_2_full_path: self.fields.append( plugins.FieldWidget("translating_curve_2", descr="Translating curve 2:", widgettypes=set(['xy']), default=translating_curve_2_full_path)) self.fields = self.fields + [ plugins.FieldFloat( "matching_x_value", descr="Matching X Value", default=0.), plugins.FieldCombo("mode", descr="Translation Mode:", items=['Translate Values', 'Translate Axes'], default="Translate Values") ]
def __init__(self, d='', T='', std='NIST-SRM738', start=50, end=50, label=True, add=True): """Make list of fields.""" self.fields = [ plugins.FieldDataset("d", descr=_("Expansion dataset"), default=d), plugins.FieldDataset("T", descr=_("Temperature dataset"), default=T), plugins.FieldCombo("std", descr=_("Calibraiton Standard"), items=standards.keys(), default=std), plugins.FieldFloat('start', descr=_('First temperature margin'), default=start), plugins.FieldFloat('end', descr=_('Last temperature margin'), default=end), plugins.FieldBool('label', _('Draw calibration label'), default=label), plugins.FieldBool('add', _('Add calibration datasets'), default=add), ]
def __init__(self, ds_x='', ds_y='', start=50., percent=0., factor=1., reconfigure='Stop', smooth=5, smode='X and Y', linearize=150, ds_out='coeff'): """Define input fields for plugin.""" self.fields = [ plugins.FieldDataset('ds_x', 'X Dataset', default=ds_x), plugins.FieldDataset('ds_y', 'Y Dataset', default=ds_y), plugins.FieldFloat('start', 'Starting X value', default=start), plugins.FieldFloat( 'percent', descr='Initial dimension', default=percent), plugins.FieldFloat( 'factor', descr='Divide by', default=factor), plugins.FieldCombo('reconfigure', descr='When cooling is found', items=[ 'Restart', 'Stop'], default=reconfigure), plugins.FieldInt('smooth', 'Smoothing Window', default=smooth), plugins.FieldCombo('smode', descr='Apply Smoothing to', items=[ 'X and Y', 'Y alone', 'Output'], default=smode), plugins.FieldInt('linearize', 'Linearization window', default=linearize), plugins.FieldDataset( 'ds_out', 'New output dataset name', default=ds_out), ]
def __init__(self, sample=None, temp=True, time=True, text='$shape$'): """Make list of fields.""" #\\\\%(xlabel)s=%(x)i self.fields = [ FieldMisuraNavigator("sample", descr="Target sample:", depth='sample', default=sample), plugins.FieldText('text', 'Label text', default=text), plugins.FieldCombo('characteristic_shape_standard', descr='Standard', default='Misura4', items=standards.keys()) ]
def __init__(self, ds='', propagate=False, action='Invert', auto=True): """Define input fields for plugin.""" self.fields = [ plugins.FieldDataset('ds', 'Dataset to convert', default=ds), plugins.FieldBool( "propagate", descr="Apply to all datasets sharing the same Y axis:", default=propagate), plugins.FieldCombo("action", descr="Conversion mode:", items=['Invert'], default=action), plugins.FieldBool("auto", descr="Auto initial dimension", default=auto) ]
def __init__(self, ds='', propagate=False, convert='None'): """Define input fields for plugin.""" kgroup, f, p = units.get_unit_info(convert, units.from_base) items = units.from_base.get(kgroup, {convert: lambda v: v}).keys() self.fields = [ plugins.FieldDataset('ds', 'Dataset to convert', default=ds), plugins.FieldCombo("convert", descr="Convert to:", items=items, default=convert), plugins.FieldBool( "propagate", descr="Apply to all datasets sharing the same Y axis:", default=propagate), ]
def __init__(self, sample=None, template_file_name='default.vsz', measure_to_plot='d'): """Make list of fields.""" self.templates = {} for path in (params.pathArt, confdb['templates']): for fn in os.listdir(path): if not fn.endswith('.vsz'): continue if not fn.startswith('report_'): continue self.templates[fn] = path self.fields = [ FieldMisuraNavigator( "sample", descr="Target sample:", depth='sample', default=sample), plugins.FieldText('measure_to_plot', 'Measure to plot', default=measure_to_plot), plugins.FieldCombo('template_file_name', 'Template filename', default=template_file_name, items=self.templates.keys()), ]