ADR Suggestion The Analysis object
#12
damskii9992
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Following the discussion of the Top-level API in https://github.com/orgs/easyscience/discussions/29, the
Analysisobject is one of the 5 main objects in the API which the user will interact with.The
Analysisobject is responsible for linking aSampleModelto aRoiSpectrum, to translate theSampleModelinto a syntax readable by theBackendCalculator, and to fit the model to the data via the chosenMinimizer.Current Implementation
The
Analysisobject has not currently been implementedProposed Implementation
The
Analysisobject takes in any number ofSampleModels andRoiSpectrumobjects and optionally the chosen calculator and minimizer, as discussed in https://github.com/orgs/easyscience/discussions/31.If the
Analysisobject contains multipleSampleModels and/or multipleRoiSpectrums, the refinement strategy is by default a simultaneous refinement.Contains the
MinimizerUpon its construction, the
Analysisclass will call theMinimizerFactoryto get aMinimizerobject according to the users inputs and attach it. If the user change minimization settings theAnalysisclass will call theMinimizerFactoryagain and replace its currentMinimizerwith the new one from the factory.Contains the
CalculatorSimilar to the
Minimizer, theAnalysisclass will also call theCalculatorFactoryand attach the returnedCalculator.In order to allow the
SampleModelandExperimentobject to use aCalculatorto calculate the theoretical spectrums, theAnalysisclass will implement the class methods:Utility methods
The
Analysisobject will additionally provide a number of utility methods for user usage:.parameterswill list all the fitable parameters contained in theSampleModelandInstrumentModelBeta Was this translation helpful? Give feedback.
All reactions