Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch Error for invalid bin range in setBinRange() #8709

Closed
mantid-builder opened this issue Sep 2, 2013 · 1 comment
Closed

Catch Error for invalid bin range in setBinRange() #8709

mantid-builder opened this issue Sep 2, 2013 · 1 comment
Assignees
Labels
Framework Issues and pull requests related to components in the Framework
Milestone

Comments

@mantid-builder
Copy link
Collaborator

Original Reporter: Mike Thomas

Entering bin range values outside the range of the data yields an error from MantidPlot about the scrollbar. It would be more useful to identify that the bin range is wrong.
The current error message reads:

Sorry, MantidPlot has caught an unexpected exception:

XIntegrationScrollBar : minimum and maximum must be between 0 and 1

Would you like to terminate MantidPlot or try to continue working?
If you choose to continue it is advisable to save your data and restart the application.

Terminate     Continue

The error was caused in the python command line with the lines

 instrument_view = getInstrumentView("Small_Angle")
 instrument_view.setBinRange(10000,15000)

where Small_Angle is a workspace of data in units of wavelength with a min of 2.2 and max of 10. Hence the range 10000,15000 is unsuitable

@mantid-builder
Copy link
Collaborator Author

This issue was originally trac ticket 7864

@mantid-builder mantid-builder added the Framework Issues and pull requests related to components in the Framework label Jun 3, 2015
@mantid-builder mantid-builder added this to the Release 3.1 milestone Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework Issues and pull requests related to components in the Framework
Projects
None yet
Development

No branches or pull requests

2 participants