You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a field with type "NX_FLOAT" gets filled by a "0" integer (rather than "0.0" float), the checking routine reports this key as undocumented. Specifically, the value is converted to float here:
and hence the value ends up in undocumented.
This is tested on the multi-format-reader, but should apply to main as well.
Relevant log output
This is output from the Tutorial 3 of the sed package, which uses the mpes reader and pynxtools converter internally:
Input:
sp.binned.attrs["metadata"]["energy_calibration"]["tof"] = 0
sp.save(data_path + "/binned.nxs")
Output:
Using mpes reader to convert the given files:
• ../sed/config/NXmpes_config.json
Field /ENTRY[entry]/PROCESS_MPES[process]/energy_calibration/original_axis written without documentation.
The output file generated: /mnt/pcshare/users/Laurenz/AreaB/sed/sed/tutorial/datasets/WSe2/binned.nxs.
Input:
sp.binned.attrs["metadata"]["energy_calibration"]["tof"] = 0.0
sp.save(data_path + "/binned.nxs")
Output:
Using mpes reader to convert the given files:
• ../sed/config/NXmpes_config.json
The output file generated: /mnt/pcshare/users/Laurenz/AreaB/sed/sed/tutorial/datasets/WSe2/binned.nxs.
The text was updated successfully, but these errors were encountered:
Contact Details
[email protected]
What happened?
When a field with type "NX_FLOAT" gets filled by a "0" integer (rather than "0.0" float), the checking routine reports this key as undocumented. Specifically, the value is converted to float here:
pynxtools/src/pynxtools/dataconverter/helpers.py
Line 668 in ef01369
This returns 0, which in turn makes this check fail:
pynxtools/src/pynxtools/dataconverter/validation.py
Line 588 in ef01369
and hence the value ends up in undocumented.
This is tested on the multi-format-reader, but should apply to main as well.
Relevant log output
The text was updated successfully, but these errors were encountered: