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
nomad-FAIR
Commits
333df493
Commit
333df493
authored
Sep 10, 2020
by
Markus Scheidgen
Browse files
Added simple workflow vis to search interface.
parent
34a1f742
Pipeline
#81946
passed with stages
in 28 minutes and 15 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gui/src/components/dft/DFTVisualizations.js
View file @
333df493
...
...
@@ -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
>
)
}
...
...
nomad/datamodel/metainfo/public.py
View file @
333df493
...
...
@@ -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
],
...
...
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