Commit 333df493 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Added simple workflow vis to search interface.

parent 34a1f742
Pipeline #81946 passed with stages
in 28 minutes and 15 seconds
......@@ -150,13 +150,20 @@ const labels = {
'transition_dipole_moments': 'Transition dipole moments',
'atomic_multipole_values': 'Atomic multipole values'}
const workflowTypeLabels = {
'geometry_optimization': 'Geometry optimization',
'phonon': 'Phonons',
'elastic': 'Elastic constants'
}
export function DFTPropertyVisualizations(props) {
const {info} = props
const {response: {statistics, metric}, setStatistics} = useContext(searchContext)
useEffect(() => {
setStatistics([
'dft.searchable_quantities',
'dft.labels_springer_classification'
'dft.labels_springer_classification',
'dft.workflow.workflow_type'
])
// eslint-disable-next-line
}, [])
......@@ -190,6 +197,9 @@ export function DFTPropertyVisualizations(props) {
<Grid item xs={4}>
<QuantityHistogram quantity="dft.labels_springer_classification" title="Property classification" initialScale={1} />
</Grid>
<Grid item xs={12}>
<QuantityHistogram quantity="dft.workflow.workflow_type" title="Workflows" valueLabels={workflowTypeLabels} initialScale={0.25} />
</Grid>
</Grid>
)
}
......
......@@ -5788,7 +5788,7 @@ class Workflow(MSection):
molecular dynamics.
''',
a_legacy=LegacyDefinition(name='workflow_type'),
a_search=Search())
a_search=Search(statistic_size=3, statistic_order='_count'))
section_relaxation = SubSection(
sub_section=SectionProxy('Relaxation'), categories=[fast_access],
......
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