Skip to content

Commit

Permalink
Including config.py and eln_data.schme.archive.yaml.
Browse files Browse the repository at this point in the history
  • Loading branch information
RubelMozumder committed Nov 23, 2023
1 parent 4f077a3 commit c6d0295
Show file tree
Hide file tree
Showing 2 changed files with 361 additions and 43 deletions.
103 changes: 60 additions & 43 deletions pynxtools/dataconverter/readers/xrd/config.py
Original file line number Diff line number Diff line change
@@ -1,52 +1,69 @@
"""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/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]/COLLECTION[collection]/count_time/@units": "",
"/ENTRY[entry]/COLLECTION[collection]/data_file": "",
"/ENTRY[entry]/COLLECTION[collection]/goniometer_x": "file:/X",
"/ENTRY[entry]/COLLECTION[collection]/goniometer_x/@units": "",
"/ENTRY[entry]/COLLECTION[collection]/goniometer_y": "file:/Y",
"/ENTRY[entry]/COLLECTION[collection]/goniometer_y/@units": "",
"/ENTRY[entry]/COLLECTION[collection]/goniometer_z": "file:/Z",
"/ENTRY[entry]/COLLECTION[collection]/goniometer_z/@units": "",
"/ENTRY[entry]/COLLECTION[collection]/measurement_type": "file:/xrdMeasurements/xrdMeasurement/measurementType",
"/ENTRY[entry]/INSTRUMENT[instrument]/DETECTOR[detector]/integration_time": "",
"/ENTRY[entry]/INSTRUMENT[instrument]/DETECTOR[detector]/integration_time/@units": "",
"/ENTRY[entry]/INSTRUMENT[instrument]/DETECTOR[detector]/scan_axis": "file:/xrdMeasurements/xrdMeasurement/scan/scanAxis",
"/ENTRY[entry]/INSTRUMENT[instrument]/DETECTOR[detector]/scan_mode": "file:/xrdMeasurements/xrdMeasurement/scan/mode",
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/k_alpha_one": "file:/xrdMeasurements/xrdMeasurement/usedWavelength/kAlpha1",
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/k_alpha_one/@units": "file:/xrdMeasurements/xrdMeasurement/usedWavelength/kAlpha1/unit",
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/k_alpha_two": "file:/xrdMeasurements/xrdMeasurement/usedWavelength/kAlpha2",
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/k_alpha_two/@units": "file:/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/k_alpha_two/@units",
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/kbeta": "",
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/kbeta/@units": "",
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/ratio_k_alphatwo_k_alphaone": "",
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/ratio_k_alphatwo_k_alphaone/@units": "",
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/xray_tube_current": "file:/xrdMeasurements/xrdMeasurement/incidentBeamPath/xRayTube/current",
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/xray_tube_current/@units": "",
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/source_peak_wavelength": "",
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/source_peak_wavelength/@units": "",
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/xray_tube_material": "file:/xrdMeasurements/xrdMeasurement/incidentBeamPath/xRayTube/anodeMaterial",
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/xray_tube_voltage": "file:/xrdMeasurements/xrdMeasurement/incidentBeamPath/xRayTube/tension",
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/xray_tube_voltage/@units": "file:/xrdMeasurements/xrdMeasurement/incidentBeamPath/xRayTube/tension/unit",
"/ENTRY[entry]/SAMPLE[sample]/prepared_by": "",
"/ENTRY[entry]/SAMPLE[sample]/sample_id": "",
"/ENTRY[entry]/SAMPLE[sample]/sample_mode": "",
"/ENTRY[entry]/SAMPLE[sample]/sample_name": "",
"/ENTRY[entry]/2theta_plot/chi": {"file_exp": {"value": "",
"@units": ""},},
"/ENTRY[entry]/2theta_plot/intensity": {"file_exp": {"value": "/detector",
"@units": ""},},
"/ENTRY[entry]/2theta_plot/omega": {"file_exp": {"value": "/Omega",
"@units": ""},},
"/ENTRY[entry]/2theta_plot/phi": {"file_exp": {"value": "/Omega",
"@units": ""},},
"/ENTRY[entry]/2theta_plot/two_theta": {"file_exp": {"value": "/2Theta",
"@units": ""},},
"/ENTRY[entry]/COLLECTION[collection]/beam_attenuation_factors": {"file_exp": {"value": "/beamAttenuationFactors",
"@units": ""},},
"/ENTRY[entry]/COLLECTION[collection]/count_time": {"file_exp": {"value": "/countTime",
"@units": ""},},
"/ENTRY[entry]/COLLECTION[collection]/data_file": {"file_exp": {"value": "",}},
"/ENTRY[entry]/COLLECTION[collection]/goniometer_x": {"file_exp": {"value": "/X",
"@units": ""},},
"/ENTRY[entry]/COLLECTION[collection]/goniometer_y": {"file_exp": {"value": "/Y",
"@units": ""},},
"/ENTRY[entry]/COLLECTION[collection]/goniometer_z": {"file_exp": {"value": "/Z",
"@units": ""},},
"/ENTRY[entry]/COLLECTION[collection]/measurement_type": {"file_exp": {"value": "/xrdMeasurements/xrdMeasurement/measurementType",
"@units": ""},},
"/ENTRY[entry]/INSTRUMENT[instrument]/DETECTOR[detector]/integration_time": {"file_exp": {"value": "",
"@units": ""},},
"/ENTRY[entry]/INSTRUMENT[instrument]/DETECTOR[detector]/integration_time/@units": {"file_exp": {"value": "",
"@units": ""},},
"/ENTRY[entry]/INSTRUMENT[instrument]/DETECTOR[detector]/scan_axis": {"file_exp": {"value": "/xrdMeasurements/xrdMeasurement/scan/scanAxis",
"@units": ""},},
"/ENTRY[entry]/INSTRUMENT[instrument]/DETECTOR[detector]/scan_mode": {"file_exp": {"value": "/xrdMeasurements/xrdMeasurement/scan/mode",
"@units": ""},},
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/k_alpha_one": {"file_exp": {"value": "/xrdMeasurements/xrdMeasurement/usedWavelength/kAlpha1",
"@units": "/xrdMeasurements/xrdMeasurement/usedWavelength/kAlpha1/unit"},},
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/k_alpha_two": {"file_exp": {"value": "/xrdMeasurements/xrdMeasurement/usedWavelength/kAlpha2",
"@units": "/xrdMeasurements/xrdMeasurement/usedWavelength/kAlpha2/unit"},},
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/kbeta": {"file_exp": {"value": "",
"@units": ""},},
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/ratio_k_alphatwo_k_alphaone": {"file_exp": {"value": "",
"@units": ""},},
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/xray_tube_current": {"file_exp": {"value": "/xrdMeasurements/xrdMeasurement/incidentBeamPath/xRayTube/current",
"@units": ""},},
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/source_peak_wavelength": {"file_exp": {"value": "",
"@units": ""},},
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/xray_tube_material": {"file_exp": {"value": "/xrdMeasurements/xrdMeasurement/incidentBeamPath/xRayTube/anodeMaterial",
"@units": ""},},
"/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/xray_tube_voltage": {"file_exp": {"value": "/xrdMeasurements/xrdMeasurement/incidentBeamPath/xRayTube/tension",
"@units": "/xrdMeasurements/xrdMeasurement/incidentBeamPath/xRayTube/tension/unit"},},
"/ENTRY[entry]/SAMPLE[sample]/prepared_by": {"file_exp": {"value": "",
},},
"/ENTRY[entry]/SAMPLE[sample]/sample_id": {"file_exp": {"value": "",
},},
"/ENTRY[entry]/SAMPLE[sample]/sample_mode": {"file_exp": {"value": "",
},},
"/ENTRY[entry]/SAMPLE[sample]/sample_name": {"file_exp": {"value": "",
},},
"/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/intensity": {"file_exp": {"value": "/detector",
"@units": ""},
},
"/ENTRY[entry]/q_plot/q": {"file_exp": {"value": "",
"@units": ""},},
"/@default": "entry",
"/ENTRY[entry]/@default": "2theta_plot",
}
Loading

0 comments on commit c6d0295

Please sign in to comment.