Skip to content

Commit

Permalink
adding an example for field.
Browse files Browse the repository at this point in the history
  • Loading branch information
RubelMozumder committed Nov 22, 2023
1 parent 7f4aff3 commit afe7d79
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
16 changes: 10 additions & 6 deletions pynxtools/dataconverter/readers/xrd/config.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
"""This is config file that mainly maps nexus definition to data path in raw file."""
# field: {file_exp: {'value': "",
# '@units': ""},}

# pylint: disable=C0301
xrdml_1_5 = {
"/ENTRY[entry]/2theta_plot/chi": "",
"/ENTRY[entry]/2theta_plot/intensity": "file:/detector",
"/ENTRY[entry]/2theta_plot/omega": "file:/Omega",
"/ENTRY[entry]/2theta_plot/intensity": {"file": ["/detector"]},
"/ENTRY[entry]/2theta_plot/omega": {"file": ["/Omega"]},
"/ENTRY[entry]/2theta_plot/phi": "",
"/ENTRY[entry]/2theta_plot/two_theta": "file:/2Theta",
"/ENTRY[entry]/COLLECTION[collection]/beam_attenuation_factors": "file:/beamAttenuationFactors",
"/ENTRY[entry]/COLLECTION[collection]/count_time": "file:/countTime",
"/ENTRY[entry]/2theta_plot/two_theta": {"file": ["/2Theta"]},
"/ENTRY[entry]/COLLECTION[collection]/beam_attenuation_factors": {"file": ["/beamAttenuationFactors"]},
"/ENTRY[entry]/COLLECTION[collection]/count_time": {"file": ["/countTime"]},
"/ENTRY[entry]/COLLECTION[collection]/count_time/@units": "",
"/ENTRY[entry]/COLLECTION[collection]/data_file": "",
"/ENTRY[entry]/COLLECTION[collection]/goniometer_x": "file:/X",
Expand Down Expand Up @@ -44,5 +46,7 @@
"/ENTRY[entry]/definition": "NXxrd_pan",
"/ENTRY[entry]/method": "X-Ray Diffraction (XRD)",
"/ENTRY[entry]/q_plot/intensity": "file:/detector",
"/ENTRY[entry]/q_plot/q": ""
"/ENTRY[entry]/q_plot/q": "",
"/@default": "entry",
"/ENTRY[entry]/@default": "2theta_plot",
}
1 change: 1 addition & 0 deletions pynxtools/dataconverter/readers/xrd/xrd_helper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""XRD helper stuffs."""

# Copyright The NOMAD Authors.
#
# This file is part of NOMAD. See https://nomad-lab.eu for further info.
Expand Down

0 comments on commit afe7d79

Please sign in to comment.