Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
encyclopedia-gui
Commits
455568bf
Commit
455568bf
authored
Sep 11, 2018
by
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
Changes
2
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
client/bundle.js
View file @
455568bf
This diff is collapsed.
Click to expand it.
client/src/material-mod/DOSPlotter.js
View file @
455568bf
...
...
@@ -64,14 +64,18 @@ class DOSPlotter extends InteractivePlotterBase{
for
(
var
i
=
0
;
i
<
pointsY
.
length
;
i
++
)
{
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
);
if
(
pSpin2
!==
null
)
pointsXInPlotRange
.
push
(
pSpin2
[
i
]);
//
if (pSpin2 !== null) pointsXInPlotRange.push(pSpin2[i]);
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
});
if
(
pSpin2
!==
null
)
this
.
pointsSpin2
.
push
({
x
:
pSpin2
[
i
]
/
dosValueDivisor
,
y
:
energy
});
if
(
pSpin2
!==
null
){
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment