Skip to content

Commit

Permalink
More lint
Browse files Browse the repository at this point in the history
  • Loading branch information
krzywon committed Nov 18, 2024
1 parent cda4b3f commit db9ac42
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/sas/qtgui/Plotting/LinearFit.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def __init__(self, parent=None,

self.setupUi(self)

assert(isinstance(max_range, tuple))
assert(isinstance(fit_range, tuple))
assert isinstance(max_range, tuple)
assert isinstance(fit_range, tuple)

self.data = data
self.parent = parent
Expand Down Expand Up @@ -88,10 +88,12 @@ def __init__(self, parent=None,
fr_max = GuiUtils.formatNumber(fit_range[1])
self.txtFitRangeMin.setText(str(fr_min))
self.txtFitRangeMax.setText(str(fr_max))
self.xminFit = None
self.xmaxFit = None

# cast xLabel into html
label = re.sub(r'\^\((.)\)(.*)', r'<span style=" vertical-align:super;">\1</span>\2',
str(self.xLabel).rstrip())
str(self.xLabel).rstrip())
self.lblRange.setText('Fit range of ' + label)

self.model = LineModel()
Expand Down

0 comments on commit db9ac42

Please sign in to comment.