Skip to content

Commit 6366201

Browse files
committed
Merge branch 'master' of github.com:sandialabs/SpecUtils
2 parents 174a090 + fdee6ef commit 6366201

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

d3_resources/SpectrumChartD3.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10247,15 +10247,19 @@ SpectrumChartD3.prototype.getPeakInfoObject = function(roi, energy, spectrumInde
1024710247
const areaUncert = peak.Amplitude[1].toFixed(1);
1024810248

1024910249
let nuc = null;
10250-
if( peak.nuclide && peak.nuclide.name ){
10251-
//nuclide: {name: "Eu152", decayParent: "Eu152", decayChild: "Sm152", energy: 1408.01}
10252-
nuc = peak.nuclide.name + " (";
10253-
if( peak.nuclide.decayParent !== peak.nuclide.name )
10254-
nuc = nuc + peak.nuclide.decayParent + ", ";
10255-
if( peak.nuclide.energy )
10256-
nuc = nuc + peak.nuclide.energy.toFixed(2) + " keV";
10257-
if( peak.nuclide.type )
10258-
nuc = nuc + " " + peak.nuclide.type;
10250+
//nuclide: {name: "Eu152", decayParent: "Eu152", decayChild: "Sm152", energy: 1408.01}
10251+
//xray: {name: "Uranium", energy: 114.8440 }
10252+
//reaction: {name: "Fe(n,g)", energy: 4996.23, type: "D.E."}
10253+
let nucinfo = peak.nuclide ? peak.nuclide : (peak.xray ? peak.xray : (peak.reaction ? peak.reaction : null));
10254+
10255+
if( nucinfo && nucinfo.name ){
10256+
nuc = nucinfo.name + " (";
10257+
if( nucinfo.decayParent && (nucinfo.decayParent !== nucinfo.name) )
10258+
nuc = nuc + nucinfo.decayParent + ", ";
10259+
if( nucinfo.energy )
10260+
nuc = nuc + nucinfo.energy.toFixed(2) + " keV";
10261+
if( nucinfo.type )
10262+
nuc = nuc + " " + nucinfo.type;
1025910263
nuc = nuc + ")";
1026010264
}
1026110265

0 commit comments

Comments
 (0)