Skip to content

Commit

Permalink
feat: add regions and components annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny committed Jun 11, 2024
1 parent cb3b39c commit 52235f8
Show file tree
Hide file tree
Showing 8 changed files with 3,083 additions and 8 deletions.
297 changes: 297 additions & 0 deletions src/from/__tests__/__snapshots__/fromVamas.test.js.snap
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,
}
`;
Loading

0 comments on commit 52235f8

Please sign in to comment.