Skip to content

Commit

Permalink
Use ENTRY instead of ENTRY[entry]
Browse files Browse the repository at this point in the history
  • Loading branch information
domna committed Jul 25, 2024
1 parent 9f303d0 commit 2253039
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions tests/data/config_file.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"/@default": "entry",
"/ENTRY[entry]/@default": "data",
"/ENTRY[entry]/definition": "NXmpes",
"/ENTRY[entry]/title": "@attrs:metadata/entry_title",
"/ENTRY[entry]/start_time": "@attrs:metadata/timing/acquisition_start",
"/ENTRY[entry]/experiment_institution": "Fritz Haber Institute - Max Planck Society",
"/ENTRY[entry]/experiment_facility": "Time Resolved ARPES",
"/ENTRY[entry]/experiment_laboratory": "Clean Room 4",
"/ENTRY[entry]/entry_identifier": "@attrs:metadata/entry_identifier",
"/ENTRY[entry]/end_time": "@attrs:metadata/timing/acquisition_stop",
"/ENTRY[entry]/duration": "@attrs:metadata/timing/acquisition_duration",
"/ENTRY[entry]/duration/@units": "s",
"/ENTRY[entry]/collection_time": "@attrs:metadata/timing/collection_time",
"/ENTRY[entry]/collection_time/@units": "s",
"/ENTRY[entry]/USER[user]": {
"/ENTRY/@default": "data",
"/ENTRY/definition": "NXmpes",
"/ENTRY/title": "@attrs:metadata/entry_title",
"/ENTRY/start_time": "@attrs:metadata/timing/acquisition_start",
"/ENTRY/experiment_institution": "Fritz Haber Institute - Max Planck Society",
"/ENTRY/experiment_facility": "Time Resolved ARPES",
"/ENTRY/experiment_laboratory": "Clean Room 4",
"/ENTRY/entry_identifier": "@attrs:metadata/entry_identifier",
"/ENTRY/end_time": "@attrs:metadata/timing/acquisition_stop",
"/ENTRY/duration": "@attrs:metadata/timing/acquisition_duration",
"/ENTRY/duration/@units": "s",
"/ENTRY/collection_time": "@attrs:metadata/timing/collection_time",
"/ENTRY/collection_time/@units": "s",
"/ENTRY/USER[user]": {
"name": "@attrs:metadata/user0/name",
"role": "@attrs:metadata/user0/role",
"affiliation": "@attrs:metadata/user0/affiliation",
"address": "@attrs:metadata/user0/address",
"email": "@attrs:metadata/user0/email"
},
"/ENTRY[entry]/INSTRUMENT[instrument]": {
"/ENTRY/INSTRUMENT[instrument]": {
"name": "Time-of-flight momentum microscope equipped delay line detector, at the endstation of the high rep-rate HHG source at FHI",
"name/@short_name": "TR-ARPES @ FHI",
"energy_resolution": {
Expand Down Expand Up @@ -100,7 +100,7 @@
}
}
},
"/ENTRY[entry]/INSTRUMENT[instrument]/ELECTRONANALYSER[electronanalyser]/COLLECTIONCOLUMN[collectioncolumn]": {
"/ENTRY/INSTRUMENT[instrument]/ELECTRONANALYSER[electronanalyser]/COLLECTIONCOLUMN[collectioncolumn]": {
"projection": "@attrs:metadata/instrument/analyzer/projection",
"scheme": "momentum dispersive",
"lens_mode": "@attrs:metadata/instrument/analyzer/lens_mode",
Expand Down Expand Up @@ -138,14 +138,14 @@
}
}
},
"/ENTRY[entry]/INSTRUMENT[instrument]/ELECTRONANALYSER[electronanalyser]/ENERGYDISPERSION[energydispersion]": {
"/ENTRY/INSTRUMENT[instrument]/ELECTRONANALYSER[electronanalyser]/ENERGYDISPERSION[energydispersion]": {
"pass_energy": "@attrs:metadata/file/KTOF:Lens:TOF:V",
"pass_energy/@units": "eV",
"scheme": "tof",
"tof_distance": 0.9,
"tof_distance/@units": "m"
},
"/ENTRY[entry]/INSTRUMENT[instrument]/ELECTRONANALYSER[electronanalyser]/DETECTOR[detector]": {
"/ENTRY/INSTRUMENT[instrument]/ELECTRONANALYSER[electronanalyser]/DETECTOR[detector]": {
"amplifier_type": "MCP",
"detector_type": "DLD",
"sensor_pixels": [
Expand All @@ -160,7 +160,7 @@
"detector_voltage": "@attrs:metadata/file/KTOF:Lens:UDLD:V",
"detector_voltage/@units": "V"
},
"/ENTRY[entry]/INSTRUMENT[instrument]/sourceTYPE[source_probe]": {
"/ENTRY/INSTRUMENT[instrument]/sourceTYPE[source_probe]": {
"name": "HHG @ TR-ARPES @ FHI",
"probe": "photon",
"type": "HHG laser",
Expand All @@ -169,7 +169,7 @@
"frequency/@units": "kHz",
"associated_beam": "/entry/instrument/beam_probe"
},
"/ENTRY[entry]/INSTRUMENT[instrument]/beamTYPE[beam_probe]": {
"/ENTRY/INSTRUMENT[instrument]/beamTYPE[beam_probe]": {
"distance": 0.0,
"distance/@units": "mm",
"incident_energy": "@attrs:metadata/instrument/beam/probe/incident_energy",
Expand All @@ -184,7 +184,7 @@
"extent/@units": "µm",
"associated_source": "/entry/instrument/source_probe"
},
"/ENTRY[entry]/INSTRUMENT[instrument]/sourceTYPE[source_pump]": {
"/ENTRY/INSTRUMENT[instrument]/sourceTYPE[source_pump]": {
"name": "OPCPA @ TR-ARPES @ FHI",
"probe": "visible light",
"type": "Optical Laser",
Expand All @@ -193,7 +193,7 @@
"frequency/@units": "kHz",
"associated_beam": "/entry/instrument/beam_pump"
},
"/ENTRY[entry]/INSTRUMENT[instrument]/beamTYPE[beam_pump]": {
"/ENTRY/INSTRUMENT[instrument]/beamTYPE[beam_pump]": {
"distance": 0.0,
"distance/@units": "mm",
"incident_energy": "@attrs:metadata/instrument/beam/pump/incident_energy",
Expand All @@ -216,7 +216,7 @@
"fluence/@units": "mJ/cm^2",
"associated_source": "/entry/instrument/source_pump"
},
"/ENTRY[entry]/INSTRUMENT[instrument]/MANIPULATOR[manipulator]": {
"/ENTRY/INSTRUMENT[instrument]/MANIPULATOR[manipulator]": {
"temperature_sensor": {
"name": "sample_temperature",
"measurement": "temperature",
Expand Down Expand Up @@ -260,7 +260,7 @@
]
}
},
"/ENTRY[entry]/SAMPLE[sample]": {
"/ENTRY/SAMPLE[sample]": {
"preparation_date": "@attrs:metadata/sample/preparation_date",
"history/notes/type": "text/plain",
"history/notes/description": "@attrs:metadata/sample/sample_history",
Expand Down Expand Up @@ -344,7 +344,7 @@
]
}
},
"/ENTRY[entry]/PROCESS_MPES[process]/DISTORTION[distortion]": {
"/ENTRY/PROCESS_MPES[process]/DISTORTION[distortion]": {
"symmetry": "@attrs:metadata/momentum_correction/rotsym",
"symmetry/@units": "",
"original_centre": "@attrs:metadata/momentum_correction/pcent",
Expand All @@ -356,7 +356,7 @@
"rdeform_field": "@attrs:metadata/momentum_correction/rdeform_field",
"rdeform_field/@units": ""
},
"/ENTRY[entry]/PROCESS_MPES[process]/REGISTRATION[registration]": {
"/ENTRY/PROCESS_MPES[process]/REGISTRATION[registration]": {
"depends_on": "/entry/process/registration/tranformations/rot_z",
"TRANSFORMATIONS[tranformations]": {
"AXISNAME[trans_x]": "@attrs:metadata/momentum_correction/adjust_params/xtrans",
Expand All @@ -377,7 +377,7 @@
"AXISNAME[rot_z]/@depends_on": "trans_y"
}
},
"/ENTRY[entry]/PROCESS_MPES[process]/energy_calibration":{
"/ENTRY/PROCESS_MPES[process]/energy_calibration":{
"coefficients": "@attrs:metadata/energy_correction/calibration/coeffs",
"coefficients/@units": "",
"fit_function": "@attrs:metadata/energy_correction/calibration/fit_function",
Expand All @@ -387,7 +387,7 @@
"calibrated_axis/@units": "eV",
"physical_quantity": "energy"
},
"/ENTRY[entry]/PROCESS_MPES[process]/CALIBRATION[kx_calibration]": {
"/ENTRY/PROCESS_MPES[process]/CALIBRATION[kx_calibration]": {
"scaling": "@attrs:metadata/momentum_correction/calibration/scale_kx",
"scaling/@units": "",
"offset": "@attrs:metadata/momentum_correction/offset_kx",
Expand All @@ -396,7 +396,7 @@
"calibrated_axis/@units": "1/angstrom",
"physical_quantity": "momentum"
},
"/ENTRY[entry]/PROCESS_MPES[process]/CALIBRATION[ky_calibration]": {
"/ENTRY/PROCESS_MPES[process]/CALIBRATION[ky_calibration]": {
"scaling": "@attrs:metadata/momentum_correction/calibration/scale_ky",
"scaling/@units": "",
"offset": "@attrs:metadata/momentum_correction/offset_ky",
Expand All @@ -405,7 +405,7 @@
"calibrated_axis/@units": "1/angstrom",
"physical_quantity": "momentum"
},
"/ENTRY[entry]/data": {
"/ENTRY/data": {
"@axes": "@data:dims",
"AXISNAME_indices[@*_indices]": "@data:*.index",
"@signal": "data",
Expand Down

0 comments on commit 2253039

Please sign in to comment.