generated from neutrons/python_project_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* normalization algorithm diagram added --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
5245244
commit 8adfd88
Showing
4 changed files
with
144 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
.. _normalization_algo: | ||
|
||
IN PROGRESS | ||
|
||
Normalization Algorithm | ||
========================= | ||
|
||
|
||
.. mermaid:: | ||
|
||
stateDiagram-v2 | ||
[*] --> NormalizationInput | ||
NormalizationInput --> NormalizationAlgorithm | ||
%%SaveData-->NormalizationOutputs | ||
NormalizationAlgorithm-->NormalizationOutputs | ||
|
||
state NormalizationInput{ | ||
Prerequisite-->NormalizationUserInputs | ||
Prerequisite-->AdditionalInstrumentInputs? | ||
state Prerequisite { | ||
ReductionPlan | ||
note left of ReductionPlan | ||
required fields for Normalization: | ||
UBMatrix, Background, Vanadium and Flux for every instrument and | ||
Mask, Tube and Detector only for SNAP, CORELLI, TOPAZ and MANDI (Laue). | ||
end note | ||
} | ||
state NormalizationUserInputs { | ||
Projections | ||
Extents | ||
Bins | ||
Symmetry | ||
Directory | ||
} | ||
} | ||
|
||
state NormalizationAlgorithm { | ||
|
||
CheckInstrumentType-->Laue | ||
CheckInstrumentType-->Wand2 | ||
CheckInstrumentType-->Demand | ||
|
||
state Laue{ | ||
l_load: LoadEachDataRun | ||
l_apply: ApplyCalibration | ||
l_crop:CropWorkspace | ||
l_ub:LoadUB | ||
l_qsample:ConvertToQSample | ||
l_background:LoadBackground | ||
l_hkl:NormalizeToHKL | ||
l_compl:CompleteRuns | ||
|
||
[*] --> l_load | ||
l_load --> l_apply | ||
l_apply-->l_crop | ||
l_crop-->l_ub | ||
l_ub-->l_qsample | ||
l_qsample-->l_background | ||
l_background-->l_hkl | ||
l_hkl-->l_load | ||
l_hkl-->l_compl | ||
l_compl-->SaveData | ||
} | ||
|
||
state Wand2{ | ||
w_ub:LoadUB | ||
w_background:LoadBackground | ||
w_hkl:NormalizeToHKL | ||
|
||
[*]-->LoadData | ||
LoadData-->w_ub | ||
w_ub-->w_background | ||
w_background-->w_hkl | ||
w_hkl-->SaveData | ||
} | ||
|
||
state Demand{ | ||
d_load: LoadEachDataRun | ||
d_ub:LoadUB | ||
d_background:LoadBackground | ||
d_hkl:NormalizeToHKL | ||
d_compl:CompleteRuns | ||
|
||
[*]-->d_load | ||
d_load-->d_ub | ||
d_ub-->d_background | ||
d_background-->d_hkl | ||
d_hkl-->d_load | ||
d_hkl-->d_compl | ||
d_compl-->SaveData | ||
} | ||
state SaveData{ | ||
SaveUB | ||
SaveDataHistogram | ||
SaveNormHistogram | ||
SaveBkgDataHistogram | ||
} | ||
} | ||
state NormalizationOutputs{ | ||
NormalizationUBMatrix? | ||
DataHistogram | ||
NormHistogram | ||
BkgDataHistogram | ||
BkgNormHistogram | ||
} | ||
|
||
The Algorithm is executed in the Model side. In case of SNAP, CORELLI, TOPAZ, MANDI and DEMAND the runs can be calculated | ||
in parallel. | ||
The script is described in detail here: `Normalization Script <https://ornlrse.clm.ibmcloud.com/rm/web#action=com.ibm.rdm.web.pages.showArtifactPage&artifactURI=https%3A%2F%2Fornlrse.clm.ibmcloud.com%2Frm%2Fresources%2FTX_gl6-gMwZEe6kustJDRk6kQ&componentURI=https%3A%2F%2Fornlrse.clm.ibmcloud.com%2Frm%2Frm-projects%2F_DADVIOHJEeyU5_2AJWnXOQ%2Fcomponents%2F_DEP4oOHJEeyU5_2AJWnXOQ&vvc.configuration=https%3A%2F%2Fornlrse.clm.ibmcloud.com%2Frm%2Fcm%2Fstream%2F_DEcs8OHJEeyU5_2AJWnXOQ>`_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.. _tab_normalization: | ||
|
||
================================================= | ||
Normalization - Reciprocal Space Recostruction | ||
================================================= | ||
|
||
Information related to the Normalization Tab. | ||
|
||
|
||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
normalization_algo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.. _tab_reduction_plan: | ||
|
||
=============== | ||
Reduction Plan | ||
=============== | ||
|
||
Information related to the Reduction Plan Tab. | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
instrument | ||
reduction_plan | ||
oncat | ||
oncat_general | ||
oncat_mvp | ||
reduction_plan_mvp |