Skip to content

Commit

Permalink
Merge branch 'release_6.0.0' into 2369-multiplicity-copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojciech Potrzebowski authored Nov 6, 2023
2 parents 11af8ed + a424770 commit a8c3b11
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sas/qtgui/Calculators/SlitSizeCalculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def calculateSlitSize(self, data=None):
try:
xdata = data.x
ydata = data.y
if xdata.size == 0 or xdata is None or ydata.size == 0 or ydata is None:
if xdata is None or len(xdata) == 0 or ydata is None or len(ydata) == 0:
msg = "The current data is empty please check x and y"
logging.error(msg)
return
Expand Down
2 changes: 1 addition & 1 deletion src/sas/qtgui/Plotting/Plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def addPlotsToContextMenu(self):

if plot.is_data:
self.actionHideError = plot_menu.addAction("Hide Error Bar")
if plot.dy is not None and plot.dy != []:
if plot.dy is not None and len(plot.dy)>0:
if plot.hide_error:
self.actionHideError.setText('Show Error Bar')
else:
Expand Down
2 changes: 1 addition & 1 deletion src/sas/qtgui/Plotting/UnitTesting/PlotterBaseTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def testDefaults(self, plotter):
assert isinstance(plotter.canvas, FigureCanvas)
assert isinstance(plotter.properties, ScaleProperties)

assert plotter._data == []
assert len(plotter._data) == 0
assert plotter._xscale == 'log'
assert plotter._yscale == 'log'
assert plotter.scale == 'linear'
Expand Down

0 comments on commit a8c3b11

Please sign in to comment.