Commit 455568bf authored by Iker Hurtado's avatar Iker Hurtado
Browse files

DOS data conversion for graphs refactoring

- working fine for VASP and exciting codes
parent 41bcfb04
Pipeline #36338 passed with stages
in 5 seconds
This diff is collapsed.
...@@ -64,14 +64,18 @@ class DOSPlotter extends InteractivePlotterBase{ ...@@ -64,14 +64,18 @@ class DOSPlotter extends InteractivePlotterBase{
for (var i = 0; i < pointsY.length; i++) { for (var i = 0; i < pointsY.length; i++) {
let energy = pointsY[i]/E_FACTOR; let energy = pointsY[i]/E_FACTOR;
let dos_value_spin1 = pSpin1[i]/dosValueDivisor; let dos_value_spin1 = pSpin1[i]*dosValueDivisor;
pointsXInPlotRange.push(dos_value_spin1); pointsXInPlotRange.push(dos_value_spin1);
if (pSpin2 !== null) pointsXInPlotRange.push(pSpin2[i]); //if (pSpin2 !== null) pointsXInPlotRange.push(pSpin2[i]);
pointsYInPlotRange.push(energy); pointsYInPlotRange.push(energy);
//console.log('POINTS : ',pointsX[i], energy); console.log('POINTS : ',dos_value_spin1, energy);
this.pointsSpin1.push({x: dos_value_spin1, y: energy}); this.pointsSpin1.push({x: dos_value_spin1, y: energy});
if (pSpin2 !== null) if (pSpin2 !== null){
this.pointsSpin2.push({x: pSpin2[i]/dosValueDivisor, y: energy}); let dos_value_spin2 = pSpin2[i]*dosValueDivisor;
this.pointsSpin2.push({x: dos_value_spin2, y: energy});
pointsXInPlotRange.push(dos_value_spin2);
}
} }
let maxDosVal = Math.max.apply(null, pointsXInPlotRange); let maxDosVal = Math.max.apply(null, pointsXInPlotRange);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment