ADR suggestion Analysis
#5
Replies: 2 comments 1 reply
-
|
A few comments here. The |
Beta Was this translation helpful? Give feedback.
-
|
Based on what was discussed in e.g. easyscience/EasyDiffractionLib#97 Similar comment is to other setters, especially with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
General
The
Analysisclass is where fitting takes place. This ADR suggestions is a work in progress.Current implementation
Only a skeleton has been implemented
Suggested implementation
The
Analysisclass will inherit from theEasyScienceAnalysisClass.It will have at least the following methods:
set_sample_modelSets the model describing scattering from the sample, see #4set_resolution_modelSets the model of the resolution, see #2set_background_modelSets the model of the background. It will also be aSampleModel, but will not have detailed balancing, and will not be convolved with the resolutionset_dataSets the data. For now, only a single 1D dataset, later we will expand.get_datareturns the data (to be used for plotting)plot_datacalculate_theory: Calculate the full model including background, resolution convolution. It will use theResolutionHandlerfor this #2calculate_theory_components: Calculate the individual components ofSampleModel, as well asBackgroundModelfor plottingplot_full_modelplot_individual_componentsfitUsescalculate_theory,EasyScienceandget_fit_parametersget_fit_parameters: Get all parameters for fitting, to be used byEasyScienceBeta Was this translation helpful? Give feedback.
All reactions