-
Notifications
You must be signed in to change notification settings - Fork 47
Description
Is your feature request related to a problem? Please describe.
A user points out that the documentation (https://www.sasview.org/docs/user/qtgui/Perspectives/Fitting/optimizer.html#fit-dream ) suggests that the DREAM output includes "confidence intervals" (though @pkienzle points out there are technically "credible intervals" rather than "confidence interval"). As shown in that documentation the output table should look something like:

However, there is no way to retrieve that table from the SasView GUI.
Describe the solution you'd like
Note that this information is available to the SasView GUI code, it is just not being presented to the user in anyway. There are 3 ways that this information should probably be made available.
- This table should be made a part of the report when a fit uses a DREAM fit
- There should be a way to pop up a table with this information in the GUI. Two obvious options would be:
- as a tab on the bumps plot outputs
- from the top level menu where you can currently access the table of batch results
- The extra columns should be added to the batch grid table in the case of a DREAM batch fit
- The output of parameters (currently under the
editmenu) should output the extra columns from a DREAM fit either as a .txt, or in Tex or CSV formats.
Additional context
@pkienzle has provided the following script than can be cut and pasted into the python shell/editor of the SasView GUI to obtain that information
from pathlib import Path
from PyQt5 import QtWidgets
from bumps.gui.uncertainty_view import UncertaintyView
from bumps.dream.stats import var_stats, format_vars, save_vars
app = QtWidgets.QApplication.instance()
state = app.activeWindow().findChild(UncertaintyView).plot_state[0]
stats = var_stats(state.draw())
print(format_vars(stats))
save_vars(stats, Path('~/saved.json').expanduser())