Skip to content

Commit

Permalink
Fix check for lists/tuples. Refs #6955
Browse files Browse the repository at this point in the history
  • Loading branch information
martyngigg committed Apr 29, 2013
1 parent 73976f6 commit 441b41f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Mantid/MantidPlot/mantidplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def _callPlotBin(workspace, indexes, errors, graph_type):
indexes = [indexes]
return new_proxy(proxies.Graph,_qti.app.mantidUI.plotBin,wkspname, indexes, errors,graph_type)

if hasattr(source, "__len__"):
if isinstance(source, list) or isinstance(source, tuple):
if len(source) > 1:
raise RuntimeError("Currently unable to handle multiple sources for bin plotting. Merging must be done by hand.")
else:
Expand Down

0 comments on commit 441b41f

Please sign in to comment.