Skip to content

Commit 16094f2

Browse files
committed
Generated gui artifacts
1 parent 51a40ba commit 16094f2

File tree

2 files changed

+29
-19
lines changed

2 files changed

+29
-19
lines changed

gui/tests/artifacts.js

+22-17
Original file line numberDiff line numberDiff line change
@@ -3084,16 +3084,16 @@ window.nomadArtifacts = {
30843084
},
30853085
"results.method.measurement.xrd.diffraction_method_name": {
30863086
"name": "diffraction_method_name",
3087-
"description": "The diffraction method used to obtain the diffraction pattern.\n| X-ray Diffraction Method | Description |\n|------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Powder X-ray Diffraction (PXRD)** | The term \"powder\" refers more to the random orientation of small crystallites than to the physical form of the sample. Can be used with non-powder samples if they present random crystallite orientations. |\n| **Single Crystal X-ray Diffraction (SCXRD)** | Used for determining the atomic structure of a single crystal. |\n| **High-Resolution X-ray Diffraction (HRXRD)** | A technique typically used for detailed characterization of epitaxial thin films using precise diffraction measurements. |\n| **Small-Angle X-ray Scattering (SAXS)** | Used for studying nanostructures in the size range of 1-100 nm. Provides information on particle size, shape, and distribution. |\n| **X-ray Reflectivity (XRR)** | Used to study thin film layers, interfaces, and multilayers. Provides info on film thickness, density, and roughness. |\n| **Grazing Incidence X-ray Diffraction (GIXRD)** | Primarily used for the analysis of thin films with the incident beam at a fixed shallow angle. |",
3087+
"description": "The diffraction method used to obtain the diffraction pattern.\n| X-Ray Diffraction Method | Description |\n|------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Powder X-Ray Diffraction (PXRD)** | The term \"powder\" refers more to the random orientation of small crystallites than to the physical form of the sample. Can be used with non-powder samples if they present random crystallite orientations. |\n| **Single Crystal X-Ray Diffraction (SCXRD)** | Used for determining the atomic structure of a single crystal. |\n| **High-Resolution X-Ray Diffraction (HRXRD)** | A technique typically used for detailed characterization of epitaxial thin films using precise diffraction measurements. |\n| **Small-Angle X-Ray Scattering (SAXS)** | Used for studying nanostructures in the size range of 1-100 nm. Provides information on particle size, shape, and distribution. |\n| **X-Ray Reflectivity (XRR)** | Used to study thin film layers, interfaces, and multilayers. Provides info on film thickness, density, and roughness. |\n| **Grazing Incidence X-Ray Diffraction (GIXRD)** | Primarily used for the analysis of thin films with the incident beam at a fixed shallow angle. |",
30883088
"type": {
30893089
"type_kind": "Enum",
30903090
"type_data": [
3091-
"Powder X-ray Diffraction (PXRD)",
3092-
"Single Crystal X-ray Diffraction (SCXRD)",
3093-
"High-Resolution X-ray Diffraction (HRXRD)",
3094-
"Small-Angle X-ray Scattering (SAXS)",
3095-
"X-ray Reflectivity (XRR)",
3096-
"Grazing Incidence X-ray Diffraction (GIXRD)",
3091+
"Powder X-Ray Diffraction (PXRD)",
3092+
"Single Crystal X-Ray Diffraction (SCXRD)",
3093+
"High-Resolution X-Ray Diffraction (HRXRD)",
3094+
"Small-Angle X-Ray Scattering (SAXS)",
3095+
"X-Ray Reflectivity (XRR)",
3096+
"Grazing Incidence X-Ray Diffraction (GIXRD)",
30973097
"unavailable"
30983098
]
30993099
},
@@ -4441,8 +4441,8 @@ window.nomadArtifacts = {
44414441
"results.properties.structural.diffraction_pattern": {
44424442
"name": "diffraction_pattern",
44434443
"description": "\n Diffraction pattern.\n ",
4444-
"nested": false,
4445-
"repeats": false
4444+
"nested": true,
4445+
"repeats": true
44464446
},
44474447
"results.properties.dynamical": {
44484448
"name": "dynamical",
@@ -16876,16 +16876,16 @@ window.nomadArtifacts = {
1687616876
]
1687716877
},
1687816878
"name": "diffraction_method_name",
16879-
"description": "The diffraction method used to obtain the diffraction pattern.\n| X-ray Diffraction Method | Description |\n|------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Powder X-ray Diffraction (PXRD)** | The term \"powder\" refers more to the random orientation of small crystallites than to the physical form of the sample. Can be used with non-powder samples if they present random crystallite orientations. |\n| **Single Crystal X-ray Diffraction (SCXRD)** | Used for determining the atomic structure of a single crystal. |\n| **High-Resolution X-ray Diffraction (HRXRD)** | A technique typically used for detailed characterization of epitaxial thin films using precise diffraction measurements. |\n| **Small-Angle X-ray Scattering (SAXS)** | Used for studying nanostructures in the size range of 1-100 nm. Provides information on particle size, shape, and distribution. |\n| **X-ray Reflectivity (XRR)** | Used to study thin film layers, interfaces, and multilayers. Provides info on film thickness, density, and roughness. |\n| **Grazing Incidence X-ray Diffraction (GIXRD)** | Primarily used for the analysis of thin films with the incident beam at a fixed shallow angle. |",
16879+
"description": "The diffraction method used to obtain the diffraction pattern.\n| X-Ray Diffraction Method | Description |\n|------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Powder X-Ray Diffraction (PXRD)** | The term \"powder\" refers more to the random orientation of small crystallites than to the physical form of the sample. Can be used with non-powder samples if they present random crystallite orientations. |\n| **Single Crystal X-Ray Diffraction (SCXRD)** | Used for determining the atomic structure of a single crystal. |\n| **High-Resolution X-Ray Diffraction (HRXRD)** | A technique typically used for detailed characterization of epitaxial thin films using precise diffraction measurements. |\n| **Small-Angle X-Ray Scattering (SAXS)** | Used for studying nanostructures in the size range of 1-100 nm. Provides information on particle size, shape, and distribution. |\n| **X-Ray Reflectivity (XRR)** | Used to study thin film layers, interfaces, and multilayers. Provides info on film thickness, density, and roughness. |\n| **Grazing Incidence X-Ray Diffraction (GIXRD)** | Primarily used for the analysis of thin films with the incident beam at a fixed shallow angle. |",
1688016880
"type": {
1688116881
"type_kind": "Enum",
1688216882
"type_data": [
16883-
"Powder X-ray Diffraction (PXRD)",
16884-
"Single Crystal X-ray Diffraction (SCXRD)",
16885-
"High-Resolution X-ray Diffraction (HRXRD)",
16886-
"Small-Angle X-ray Scattering (SAXS)",
16887-
"X-ray Reflectivity (XRR)",
16888-
"Grazing Incidence X-ray Diffraction (GIXRD)",
16883+
"Powder X-Ray Diffraction (PXRD)",
16884+
"Single Crystal X-Ray Diffraction (SCXRD)",
16885+
"High-Resolution X-Ray Diffraction (HRXRD)",
16886+
"Small-Angle X-Ray Scattering (SAXS)",
16887+
"X-Ray Reflectivity (XRR)",
16888+
"Grazing Incidence X-Ray Diffraction (GIXRD)",
1688916889
"unavailable"
1689016890
]
1689116891
}
@@ -18563,9 +18563,14 @@ window.nomadArtifacts = {
1856318563
"m_def": "nomad.metainfo.metainfo.SubSection",
1856418564
"m_parent_index": 2,
1856518565
"m_parent_sub_section": "sub_sections",
18566+
"m_annotations": {
18567+
"elasticsearch": [
18568+
"diffraction_pattern"
18569+
]
18570+
},
1856618571
"name": "diffraction_pattern",
1856718572
"sub_section": "/packages/4/section_definitions/56",
18568-
"repeats": false
18573+
"repeats": true
1856918574
}
1857018575
]
1857118576
},

nomad/datamodel/results.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -2734,7 +2734,8 @@ class DiffractionPattern(MSection):
27342734
''',
27352735
)
27362736
q_vector = Quantity(
2737-
type=np.dtype(np.float64), shape=['*'],
2737+
type=np.dtype(np.float64),
2738+
shape=['*'],
27382739
unit='meter**(-1)',
27392740
description='The scattering vector *Q*.')
27402741

@@ -2755,7 +2756,11 @@ class StructuralProperties(MSection):
27552756
repeats=True,
27562757
a_elasticsearch=Elasticsearch(material_entry_type, nested=True)
27572758
)
2758-
diffraction_pattern = SubSection(sub_section=DiffractionPattern.m_def, repeats=True)
2759+
diffraction_pattern = SubSection(
2760+
sub_section=DiffractionPattern.m_def,
2761+
repeats=True,
2762+
a_elasticsearch=Elasticsearch(material_entry_type, nested=True)
2763+
)
27592764

27602765

27612766
class MeanSquaredDisplacement(MDPropertySection):

0 commit comments

Comments
 (0)