Skip to content

Commit

Permalink
new numpy requires new syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
rozyczko committed Oct 27, 2023
1 parent f07a0c1 commit d74d4da
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit d74d4da

Please sign in to comment.