Add checkbox to UI which will control if RAAR/RASB will reload or not
This commit is contained in:
@@ -18,6 +18,6 @@
|
||||
# =============================================================================
|
||||
|
||||
from .cache import FitDataCache
|
||||
from .defs import XDef, YDef, VectorDef, Input
|
||||
from .defs import XDef, YDef, VectorDef, Input, InputCheckbox
|
||||
from .getter import PointGetter, SmoothPointGetter
|
||||
from .graph import FitGraph
|
||||
|
||||
@@ -22,6 +22,7 @@ from collections import namedtuple
|
||||
|
||||
|
||||
VectorDef = namedtuple('VectorDef', ('lengthHandle', 'lengthUnit', 'angleHandle', 'angleUnit', 'label'))
|
||||
InputCheckbox = namedtuple('InputCheckbox', ('handle', 'label', 'defaultValue'))
|
||||
|
||||
|
||||
class YDef:
|
||||
|
||||
@@ -79,17 +79,17 @@ class FitGraph(metaclass=ABCMeta):
|
||||
def inputMap(self):
|
||||
return OrderedDict(((i.handle, i.unit), i) for i in self.inputs)
|
||||
|
||||
@property
|
||||
def srcExtraCols(self):
|
||||
return ()
|
||||
checkboxes = ()
|
||||
|
||||
@property
|
||||
def tgtExtraCols(self):
|
||||
return ()
|
||||
def checkboxesMap(self):
|
||||
return OrderedDict((ec.handle, ec) for ec in self.checkboxes)
|
||||
|
||||
hasTargets = False
|
||||
srcVectorDef = None
|
||||
tgtVectorDef = None
|
||||
hasTargets = False
|
||||
srcExtraCols = ()
|
||||
tgtExtraCols = ()
|
||||
usesHpEffectivity = False
|
||||
|
||||
def getPlotPoints(self, mainInput, miscInputs, xSpec, ySpec, src, tgt=None):
|
||||
|
||||
Reference in New Issue
Block a user