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
2760047d
Commit
2760047d
authored
Apr 11, 2018
by
Iker Hurtado
Browse files
Minor changes
parent
cd404da9
Changes
5
Hide whitespace changes
Inline
Side-by-side
client/bundle.js
View file @
2760047d
...
...
@@ -53,8 +53,8 @@
let
PubSub
=
__webpack_require__
(
5
);
let
Router
=
__webpack_require__
(
6
);
let
MaterialMod
=
__webpack_require__
(
7
);
let
SearchModule
=
__webpack_require__
(
3
2
);
let
UserGuidance
=
__webpack_require__
(
3
3
);
let
SearchModule
=
__webpack_require__
(
3
1
);
let
UserGuidance
=
__webpack_require__
(
3
2
);
let
DataStore
=
__webpack_require__
(
2
);
let
contentElement
=
document
.
getElementById
(
"
content
"
);
...
...
@@ -1429,8 +1429,8 @@
let
StructureDetails
=
__webpack_require__
(
18
);
let
ElectronicStructDetails
=
__webpack_require__
(
23
);
let
MethodologyDetails
=
__webpack_require__
(
25
);
let
ThermalPropsDetails
=
__webpack_require__
(
2
8
);
let
ElasticConstDetails
=
__webpack_require__
(
3
1
);
let
ThermalPropsDetails
=
__webpack_require__
(
2
7
);
let
ElasticConstDetails
=
__webpack_require__
(
3
0
);
let
DataStore
=
__webpack_require__
(
2
);
let
LoadingPopup
=
__webpack_require__
(
3
);
...
...
@@ -3807,7 +3807,10 @@
}
setPoints
(
points
){
setPoints
(
points
,
codeName
){
let
dosValueDivisor
=
E_FACTOR
;
//if (codeName === 'VASP') dosValueDivisor = 1e-10*(E_FACTOR*E_FACTOR);
this
.
pointsSpin1
=
[];
this
.
pointsSpin2
=
[];
...
...
@@ -3822,14 +3825,14 @@
for
(
var
i
=
0
;
i
<
pointsY
.
length
;
i
++
)
{
let
energy
=
pointsY
[
i
]
/
E_FACTOR
;
let
dos_value_spin1
=
pSpin1
[
i
]
/
(
E_FACTOR
)
;
let
dos_value_spin1
=
pSpin1
[
i
]
/
dosValueDivisor
;
pointsXInPlotRange
.
push
(
dos_value_spin1
);
if
(
pSpin2
!==
null
)
pointsXInPlotRange
.
push
(
pSpin2
[
i
]);
pointsYInPlotRange
.
push
(
energy
);
//console.log('POINTS : ',pointsX[i], energy);
this
.
pointsSpin1
.
push
({
x
:
dos_value_spin1
,
y
:
energy
});
if
(
pSpin2
!==
null
)
this
.
pointsSpin2
.
push
({
x
:
pSpin2
[
i
]
/
(
E_FACTOR
)
,
y
:
energy
});
this
.
pointsSpin2
.
push
({
x
:
pSpin2
[
i
]
/
dosValueDivisor
,
y
:
energy
});
}
let
maxDosVal
=
Math
.
max
.
apply
(
null
,
pointsXInPlotRange
);
...
...
@@ -5596,8 +5599,8 @@
this
.
spinLegend
.
style
.
display
=
'
block
'
;
//***util.addBandGapData(calcData, bsData);
//console.log(
calcData.dos_json
);
this
.
bsDosPlotter
.
setUpAndData
(
bsData
,
dosData
);
//console.log(
'CODE NAME:', calc.code_name
);
this
.
bsDosPlotter
.
setUpAndData
(
bsData
,
dosData
,
calc
.
code_name
);
if
(
calc
.
has_band_structure
){
...
...
@@ -5882,7 +5885,7 @@
}
setUpAndData
(
dispData
,
dosData
){
setUpAndData
(
dispData
,
dosData
,
codeName
){
this
.
hasDispData
=
(
dispData
!==
undefined
&&
dispData
!==
null
);
this
.
hasDosData
=
(
dosData
!==
undefined
&&
dosData
!==
null
);
...
...
@@ -5913,7 +5916,7 @@
if
(
this
.
hasDosData
){
this
.
dosPlotter
.
setPoints
(
dosData
);
this
.
dosPlotter
.
setPoints
(
dosData
,
codeName
);
if
(
this
.
hasDispData
){
this
.
dosPlotter
.
setRepaintListener
(
(
yZoom
,
yOffset
)
=>
{
...
...
@@ -5955,7 +5958,7 @@
let
InfoSys
=
__webpack_require__
(
11
);
//let FilterInGroupsComponent = require('./FilterInGroupsComponent.js');
let
DataStore
=
__webpack_require__
(
2
);
let
SortingButton
=
__webpack_require__
(
2
7
);
let
SortingButton
=
__webpack_require__
(
2
6
);
const
REPOSITORY_LINK
=
...
...
@@ -6317,6 +6320,14 @@
DataStore
.
getCalculations
().
forEach
(
c
=>
{
/*let calc = DataStore.getCalc(DataStore.getCalcReprIntId(leafId));
let calcType = calc.run_type;
if (DataStore.getGroups().has(calc.id)){//leafId)){
calcType = DataStore.getGroupType(calc.id);//leafId);
if (calcType === 'convergence') calcType = 'parameter variation';
//console.log('Group',DataStore.getGroupType(leafId));
}*/
let
calcType
=
c
.
run_type
;
if
(
DataStore
.
getGroups
().
has
(
c
.
id
)){
//leafId)){
calcType
=
DataStore
.
getGroupType
(
c
.
id
);
//leafId);
...
...
@@ -6358,15 +6369,6 @@
let
html
=
''
;
this
.
sortedCalcs
.
forEach
(
rowCalcData
=>
{
//leafId => {
/*let calc = DataStore.getCalc(DataStore.getCalcReprIntId(leafId));
let calcType = calc.run_type;
if (DataStore.getGroups().has(calc.id)){//leafId)){
calcType = DataStore.getGroupType(calc.id);//leafId);
if (calcType === 'convergence') calcType = 'parameter variation';
//console.log('Group',DataStore.getGroupType(leafId));
}*/
//html+= getRowHtml(leafId, calc, calcType);
html
+=
getRowHtml
(
rowCalcData
);
});
...
...
@@ -6454,8 +6456,7 @@
/***/
},
/* 26 */
,
/* 27 */
/* 26 */
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
...
...
@@ -6506,7 +6507,7 @@
/***/
},
/* 2
8
*/
/* 2
7
*/
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
...
...
@@ -6519,8 +6520,8 @@
let
LoadingPopup
=
__webpack_require__
(
3
);
let
HeatCapPlotter
=
__webpack_require__
(
16
);
let
HelmholtzPlotter
=
__webpack_require__
(
2
9
);
let
PhononDispDOSPlotter
=
__webpack_require__
(
30
);
let
HelmholtzPlotter
=
__webpack_require__
(
2
8
);
let
PhononDispDOSPlotter
=
__webpack_require__
(
29
);
class
ThermalPropsDetails
extends
DetailsViewBase
{
...
...
@@ -6701,7 +6702,7 @@
/***/
},
/* 2
9
*/
/* 2
8
*/
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
"
use strict
"
;
...
...
@@ -6756,7 +6757,7 @@
/***/
},
/*
30
*/
/*
29
*/
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
...
...
@@ -6916,7 +6917,7 @@
/***/
},
/* 3
1
*/
/* 3
0
*/
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
...
...
@@ -7021,17 +7022,17 @@
/***/
},
/* 3
2
*/
/* 3
1
*/
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
"
use strict
"
;
let
util
=
__webpack_require__
(
1
);
let
UserGuidance
=
__webpack_require__
(
3
3
);
let
ElementTable
=
__webpack_require__
(
3
4
);
let
MaterialList
=
__webpack_require__
(
3
5
);
let
PropertiesBox
=
__webpack_require__
(
3
6
);
let
UserGuidance
=
__webpack_require__
(
3
2
);
let
ElementTable
=
__webpack_require__
(
3
3
);
let
MaterialList
=
__webpack_require__
(
3
4
);
let
PropertiesBox
=
__webpack_require__
(
3
5
);
function
getTagHtml
(
tag
,
isFormula
){
...
...
@@ -7484,7 +7485,7 @@
/***/
},
/* 3
3
*/
/* 3
2
*/
/***/
function
(
module
,
exports
)
{
"
use strict
"
;
...
...
@@ -7655,7 +7656,7 @@
/***/
},
/* 3
4
*/
/* 3
3
*/
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
...
...
@@ -8024,7 +8025,7 @@
/***/
},
/* 3
5
*/
/* 3
4
*/
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
...
...
@@ -8285,7 +8286,7 @@
/***/
},
/* 3
6
*/
/* 3
5
*/
/***/
function
(
module
,
exports
,
__webpack_require__
)
{
...
...
client/src/material-mod/BSDOSPlotter.js
View file @
2760047d
...
...
@@ -32,7 +32,7 @@ class BSDOSPlotter{
}
setUpAndData
(
dispData
,
dosData
){
setUpAndData
(
dispData
,
dosData
,
codeName
){
this
.
hasDispData
=
(
dispData
!==
undefined
&&
dispData
!==
null
);
this
.
hasDosData
=
(
dosData
!==
undefined
&&
dosData
!==
null
);
...
...
@@ -63,7 +63,7 @@ class BSDOSPlotter{
if
(
this
.
hasDosData
){
this
.
dosPlotter
.
setPoints
(
dosData
);
this
.
dosPlotter
.
setPoints
(
dosData
,
codeName
);
if
(
this
.
hasDispData
){
this
.
dosPlotter
.
setRepaintListener
(
(
yZoom
,
yOffset
)
=>
{
...
...
client/src/material-mod/DOSPlotter.js
View file @
2760047d
...
...
@@ -24,7 +24,10 @@ class DOSPlotter extends InteractivePlotterBase{
}
setPoints
(
points
){
setPoints
(
points
,
codeName
){
let
dosValueDivisor
=
E_FACTOR
;
//if (codeName === 'VASP') dosValueDivisor = 1e-10*(E_FACTOR*E_FACTOR);
this
.
pointsSpin1
=
[];
this
.
pointsSpin2
=
[];
...
...
@@ -39,14 +42,14 @@ class DOSPlotter extends InteractivePlotterBase{
for
(
var
i
=
0
;
i
<
pointsY
.
length
;
i
++
)
{
let
energy
=
pointsY
[
i
]
/
E_FACTOR
;
let
dos_value_spin1
=
pSpin1
[
i
]
/
(
E_FACTOR
)
;
let
dos_value_spin1
=
pSpin1
[
i
]
/
dosValueDivisor
;
pointsXInPlotRange
.
push
(
dos_value_spin1
);
if
(
pSpin2
!==
null
)
pointsXInPlotRange
.
push
(
pSpin2
[
i
]);
pointsYInPlotRange
.
push
(
energy
);
//console.log('POINTS : ',pointsX[i], energy);
this
.
pointsSpin1
.
push
({
x
:
dos_value_spin1
,
y
:
energy
});
if
(
pSpin2
!==
null
)
this
.
pointsSpin2
.
push
({
x
:
pSpin2
[
i
]
/
(
E_FACTOR
)
,
y
:
energy
});
this
.
pointsSpin2
.
push
({
x
:
pSpin2
[
i
]
/
dosValueDivisor
,
y
:
energy
});
}
let
maxDosVal
=
Math
.
max
.
apply
(
null
,
pointsXInPlotRange
);
...
...
client/src/material-mod/ElectronicStructDetails.view.js
View file @
2760047d
...
...
@@ -287,8 +287,8 @@ class ElectronicStructDetails extends DetailsViewBase{
this
.
spinLegend
.
style
.
display
=
'
block
'
;
//***util.addBandGapData(calcData, bsData);
//console.log(
calcData.dos_json
);
this
.
bsDosPlotter
.
setUpAndData
(
bsData
,
dosData
);
//console.log(
'CODE NAME:', calc.code_name
);
this
.
bsDosPlotter
.
setUpAndData
(
bsData
,
dosData
,
calc
.
code_name
);
if
(
calc
.
has_band_structure
){
...
...
client/src/material-mod/MethodologyDetails.view.js
View file @
2760047d
...
...
@@ -368,6 +368,14 @@ class MethodologyDetails extends DetailsViewBase {
DataStore
.
getCalculations
().
forEach
(
c
=>
{
/*let calc = DataStore.getCalc(DataStore.getCalcReprIntId(leafId));
let calcType = calc.run_type;
if (DataStore.getGroups().has(calc.id)){//leafId)){
calcType = DataStore.getGroupType(calc.id);//leafId);
if (calcType === 'convergence') calcType = 'parameter variation';
//console.log('Group',DataStore.getGroupType(leafId));
}*/
let
calcType
=
c
.
run_type
;
if
(
DataStore
.
getGroups
().
has
(
c
.
id
)){
//leafId)){
calcType
=
DataStore
.
getGroupType
(
c
.
id
);
//leafId);
...
...
@@ -409,15 +417,6 @@ class MethodologyDetails extends DetailsViewBase {
let
html
=
''
;
this
.
sortedCalcs
.
forEach
(
rowCalcData
=>
{
//leafId => {
/*let calc = DataStore.getCalc(DataStore.getCalcReprIntId(leafId));
let calcType = calc.run_type;
if (DataStore.getGroups().has(calc.id)){//leafId)){
calcType = DataStore.getGroupType(calc.id);//leafId);
if (calcType === 'convergence') calcType = 'parameter variation';
//console.log('Group',DataStore.getGroupType(leafId));
}*/
//html+= getRowHtml(leafId, calc, calcType);
html
+=
getRowHtml
(
rowCalcData
);
});
...
...
Write
Preview
Supports
Markdown
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