Commit 9e351c50 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Merge branch 'mp-update' into 'v1.0.0'

Materials Project workflow data improvement

See merge request !544
parents ca483a7b c02761d6
Pipeline #120966 passed with stages
in 32 minutes and 44 seconds
Subproject commit 4d2ac2cb1914d718f0dec3f0b7f3276036f1921a
Subproject commit a8a92c6ebf6734cf0813d807c2309a9e5310ff3b
......@@ -46,10 +46,10 @@ const EnergyVolumeCurve = React.memo(({
}
// Get indices that sort the data by volume
const nTraces = data.data.length
const indices = new Array(nTraces)
const volumes = data.data[0].volumes
for (let i = 0; i < nTraces; ++i) indices[i] = i
const nPoints = data.data[0].volumes.length
const indices = new Array(nPoints)
for (let i = 0; i < nPoints; ++i) indices[i] = i
indices.sort((a, b) => {
return volumes[a] < volumes[b] ? -1 : volumes[a] > volumes[b] ? 1 : 0
})
......@@ -97,7 +97,7 @@ const EnergyVolumeCurve = React.memo(({
},
xaxis: {
title: {
text: `Volume (${volumeUnit.label(units)})`
text: `Volume/atom (${volumeUnit.label(units)})`
},
zeroline: false
},
......
......@@ -447,7 +447,7 @@ class EquationOfState(MSection):
shape=['n_points'],
unit='m ** 3',
description='''
Array of volumes for which the energies are evaluated.
Array of volumes per atom for which the energies are evaluated.
''')
energies = Quantity(
......
Supports Markdown
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