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, 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='', 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): """Construct plugin.""" super().__init__() self.mimedata = qt.QApplication.clipboard().mimeData() #self.charts = [] self.fields = [ plugins.FieldText("text", descr="test", default="DEFAULT"), plugins.FieldTextEdit("textedit", descr="test", default="DEFOFO"), plugins.FieldWidget("parent_widget", descr="Parent widget", default=""), plugins.FieldDataset('ds1', descr="Dataset 1 to change", default=''), plugins.FieldDatasetMulti('ds1repl', descr="Replacement(s) for dataset 1"), plugins.FieldDataset('ds2', descr="Dataset 2 to change (optional)", default=''), plugins.FieldDatasetMulti( 'ds2repl', descr="Replacement(s) for dataset 2", ), plugins.FieldBool("names", descr="Build new names from datasets", default=True), ]
def __init__(self): """Make list of fields.""" self.fields = [ # plugins.FieldWidget("widget", descr="Start from widget", # default="/"), # plugins.FieldMarker("markersearch", descr="Search for marker"), # plugins.FieldMarker("markerreplace", descr="Replace with marker"), plugins.FieldBool("character", descr="Plot character of bands") ]
def __init__(self, ax='', ay='', bx='', by='', relative=True, smooth=False, tolerance=10., operation='A-B', ds_out=''): """Define input fields for plugin.""" self.fields = [ plugins.FieldDataset('ay', 'Curve A: Y dataset', default=ay), plugins.FieldDataset('ax', 'Curve A: X dataset', default=ax), plugins.FieldDataset('by', 'Curve B: Y dataset', default=by), plugins.FieldDataset('bx', 'Curve B: X dataset', default=bx), # TODO: might support unlimited number of curves, thanks to numexpr plugins.FieldText( 'operation', 'Operation to perform. ', default=operation), plugins.FieldBool( "relative", descr="Coincident start", default=relative), plugins.FieldBool( "smooth", descr="Smooth x data", default=smooth), plugins.FieldFloat( "tolerance", descr="X rectification tolerance", default=tolerance), plugins.FieldDataset( 'ds_out', 'Output dataset name', default=ds_out) ] self.error = 0
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, 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), ]