-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add regions and components annotations
- Loading branch information
Showing
8 changed files
with
3,083 additions
and
8 deletions.
There are no files selected for viewing
297 changes: 297 additions & 0 deletions
297
src/from/__tests__/__snapshots__/fromVamas.test.js.snap
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,297 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`fromVamas > Cellulose with CASA information, regions and components 1`] = ` | ||
{ | ||
"analyserMode": "FAT", | ||
"analysisSource": { | ||
"beamWidthX": { | ||
"units": "um", | ||
"value": 6000, | ||
}, | ||
"beamWidthY": { | ||
"units": "um", | ||
"value": 500, | ||
}, | ||
"characteristicEnergy": { | ||
"units": "eV", | ||
"value": 1486.6, | ||
}, | ||
"label": "Al Ka, Monochromated", | ||
}, | ||
"components": [ | ||
{ | ||
"area": 4830.0138, | ||
"assignment": "C 1s 1", | ||
"bindingEnergy": { | ||
"units": "eV", | ||
"value": 286.7736, | ||
}, | ||
"kineticEnergy": { | ||
"units": "eV", | ||
"value": 1199.8264, | ||
}, | ||
"shapeParameters": { | ||
"gamma": 1.1057933, | ||
}, | ||
"type": "lorentzianAsymmetric", | ||
}, | ||
{ | ||
"area": 989.18682, | ||
"assignment": "C 1s 2", | ||
"bindingEnergy": { | ||
"units": "eV", | ||
"value": 288.1950999999999, | ||
}, | ||
"kineticEnergy": { | ||
"units": "eV", | ||
"value": 1198.4049, | ||
}, | ||
"shapeParameters": { | ||
"gamma": 1.1121055, | ||
}, | ||
"type": "lorentzianAsymmetric", | ||
}, | ||
{ | ||
"area": 56.812945, | ||
"assignment": "C 1s degrad", | ||
"bindingEnergy": { | ||
"units": "eV", | ||
"value": 288.8453999999999, | ||
}, | ||
"kineticEnergy": { | ||
"units": "eV", | ||
"value": 1197.7546, | ||
}, | ||
"shapeParameters": { | ||
"gamma": 0.82920074, | ||
}, | ||
"type": "gaussianLorentzianProduct", | ||
}, | ||
{ | ||
"area": 100.40835, | ||
"assignment": "C 1s Adv.C", | ||
"bindingEnergy": { | ||
"units": "eV", | ||
"value": 284.8711999999998, | ||
}, | ||
"kineticEnergy": { | ||
"units": "eV", | ||
"value": 1201.7288, | ||
}, | ||
"shapeParameters": { | ||
"gamma": 0.74742285, | ||
}, | ||
"type": "gaussianLorentzianProduct", | ||
}, | ||
], | ||
"energyType": { | ||
"kind": "binding", | ||
"units": "eV", | ||
}, | ||
"from": 294.16, | ||
"region": { | ||
"auger": { | ||
"element": null, | ||
"transition": null, | ||
}, | ||
"name": "C 1s", | ||
"orbital": { | ||
"angularMomentum": "s", | ||
"element": "C", | ||
"shell": 1, | ||
}, | ||
}, | ||
"regions": [ | ||
{ | ||
"background": { | ||
"parameters": { | ||
"averageWidth": 1, | ||
"bindingEnergyEnd": { | ||
"units": "eV", | ||
"value": 283.34839999999986, | ||
}, | ||
"bindingEnergyStart": { | ||
"units": "eV", | ||
"value": 293.2871, | ||
}, | ||
"crossSection": [ | ||
40.442441, | ||
-450, | ||
0, | ||
0, | ||
], | ||
"endOffset": 0, | ||
"kineticEnergyEnd": { | ||
"units": "eV", | ||
"value": 1203.2516, | ||
}, | ||
"kineticEnergyStart": { | ||
"units": "eV", | ||
"value": 1193.3129, | ||
}, | ||
"relativeSensitivityFactor": 0.278, | ||
"startOffset": 0, | ||
}, | ||
"rawParameters": "1193.3129 1203.2516 0.278 2 0 0 40.442441 -450 0 0", | ||
"type": "Shirley", | ||
}, | ||
"block": { | ||
"atomicMass": 12.011, | ||
"regionBlockID": "C 1s", | ||
"relativeSensitivityFactor": 0.278, | ||
}, | ||
"regionID": "C 1s", | ||
}, | ||
], | ||
"speciesLabel": "C", | ||
"to": 282.16, | ||
} | ||
`; | ||
|
||
exports[`fromVamas Cellulose with CASA information, regions and components 1`] = ` | ||
{ | ||
"analyserMode": "FAT", | ||
"analysisSource": { | ||
"beamWidthX": { | ||
"units": "um", | ||
"value": 6000, | ||
}, | ||
"beamWidthY": { | ||
"units": "um", | ||
"value": 500, | ||
}, | ||
"characteristicEnergy": { | ||
"units": "eV", | ||
"value": 1486.6, | ||
}, | ||
"label": "Al Ka, Monochromated", | ||
}, | ||
"components": [ | ||
{ | ||
"area": 4830.0138, | ||
"assignment": "C 1s 1", | ||
"bindingEnergy": { | ||
"units": "eV", | ||
"value": 286.7736, | ||
}, | ||
"kineticEnergy": { | ||
"units": "eV", | ||
"value": 1199.8264, | ||
}, | ||
"shapeParameters": { | ||
"gamma": 1.1057933, | ||
}, | ||
"type": "lorentzianAsymmetric", | ||
}, | ||
{ | ||
"area": 989.18682, | ||
"assignment": "C 1s 2", | ||
"bindingEnergy": { | ||
"units": "eV", | ||
"value": 288.1950999999999, | ||
}, | ||
"kineticEnergy": { | ||
"units": "eV", | ||
"value": 1198.4049, | ||
}, | ||
"shapeParameters": { | ||
"gamma": 1.1121055, | ||
}, | ||
"type": "lorentzianAsymmetric", | ||
}, | ||
{ | ||
"area": 56.812945, | ||
"assignment": "C 1s degrad", | ||
"bindingEnergy": { | ||
"units": "eV", | ||
"value": 288.8453999999999, | ||
}, | ||
"kineticEnergy": { | ||
"units": "eV", | ||
"value": 1197.7546, | ||
}, | ||
"shapeParameters": { | ||
"gamma": 0.82920074, | ||
}, | ||
"type": "gaussianLorentzianProduct", | ||
}, | ||
{ | ||
"area": 100.40835, | ||
"assignment": "C 1s Adv.C", | ||
"bindingEnergy": { | ||
"units": "eV", | ||
"value": 284.8711999999998, | ||
}, | ||
"kineticEnergy": { | ||
"units": "eV", | ||
"value": 1201.7288, | ||
}, | ||
"shapeParameters": { | ||
"gamma": 0.74742285, | ||
}, | ||
"type": "gaussianLorentzianProduct", | ||
}, | ||
], | ||
"energyType": { | ||
"kind": "binding", | ||
"units": "eV", | ||
}, | ||
"from": 294.16, | ||
"region": { | ||
"auger": { | ||
"element": null, | ||
"transition": null, | ||
}, | ||
"name": "C 1s", | ||
"orbital": { | ||
"angularMomentum": "s", | ||
"element": "C", | ||
"shell": 1, | ||
}, | ||
}, | ||
"regions": [ | ||
{ | ||
"background": { | ||
"parameters": { | ||
"averageWidth": 1, | ||
"bindingEnergyEnd": { | ||
"units": "eV", | ||
"value": 283.34839999999986, | ||
}, | ||
"bindingEnergyStart": { | ||
"units": "eV", | ||
"value": 293.2871, | ||
}, | ||
"crossSection": [ | ||
40.442441, | ||
-450, | ||
0, | ||
0, | ||
], | ||
"endOffset": 0, | ||
"kineticEnergyEnd": { | ||
"units": "eV", | ||
"value": 1203.2516, | ||
}, | ||
"kineticEnergyStart": { | ||
"units": "eV", | ||
"value": 1193.3129, | ||
}, | ||
"relativeSensitivityFactor": 0.278, | ||
"startOffset": 0, | ||
}, | ||
"rawParameters": "1193.3129 1203.2516 0.278 2 0 0 40.442441 -450 0 0", | ||
"type": "Shirley", | ||
}, | ||
"block": { | ||
"atomicMass": 12.011, | ||
"regionBlockID": "C 1s", | ||
"relativeSensitivityFactor": 0.278, | ||
}, | ||
"regionID": "C 1s", | ||
}, | ||
], | ||
"speciesLabel": "C", | ||
"to": 282.16, | ||
} | ||
`; |
Oops, something went wrong.