-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fairmat 2024: additions and clarifications in NXbeam #1408
base: main
Are you sure you want to change the base?
Conversation
base_classes/NXbeam.nxdl.xml
Outdated
@@ -61,11 +61,45 @@ | |||
<doc>Distance from sample. Note, it is recommended to use NXtransformations instead.</doc> | |||
</field> | |||
<field name="incident_energy" type="NX_FLOAT" units="NX_ENERGY"> | |||
<doc>Energy carried by each particle of the beam on entering the beamline component</doc> | |||
<doc> | |||
Energy carried by each particle of the beam on entering the beamline component. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Energy carried by each particle of the beam on entering the beamline component. | |
Energy carried by each particle of the beam on entering the beamline location. |
NXbeam defines the properties of the beam at a specific location.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, has been changed.
2c737d2
to
5b7cc87
Compare
base_classes/NXbeam.nxdl.xml
Outdated
</field> | ||
<field name="frog_trace" type="NX_FLOAT"> | ||
<doc> | ||
FROG trace of the pulse. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spell out what FROG
stands for
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Group delay dispersion of the pulse for linear chirp | ||
</doc> | ||
</field> | ||
<field name="previous_device"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The general way is place an NXbeam
in a device in NXinstrument
- whether this is good enough or a new way to chain devices together should be a NIAC decision.
base_classes/NXbeam.nxdl.xml
Outdated
|
||
In the case of a monochromatic beam this is the scalar energy. | ||
Several other use cases are permitted, depending on the | ||
presence of other incident_energy_X fields. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add backticks to emphasize field names to RST formatting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed, thanks
base_classes/NXbeam.nxdl.xml
Outdated
Example: for lightsource brilliance (SI) 1/(s.mm2.mrad2). | ||
Here: SI units are V2/m2. | ||
</doc> | ||
</attribute> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete this attribute block, and change units for incident_polarization
to V^2/m^2
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
base_classes/NXbeam.nxdl.xml
Outdated
Example: for lightsource brilliance (SI) 1/(s.mm2.mrad2). | ||
Here: SI units are V2/m2. | ||
</doc> | ||
</attribute> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete this attribute block, and change units for final_polarization
to V^2/m^2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
base_classes/NXbeam.nxdl.xml
Outdated
<doc> | ||
Here: SI units are 'J/m2', customary 'mJ/cm2'. | ||
</doc> | ||
</attribute> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete this attribute block, and change units for fluence to mJ/cm^2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
RST wraps computer code with double backticks: * correct: ``energy``
* incorrect: `energy` This is one of the most common typos in the documentation. |
You are right, I changed it here for our new contribution where we make use of backticks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just randomly went through the file to be knowledged of the NAIC decision. I found some typos of bouble back tick
while mentioning some fields.
# Conflicts: # base_classes/NXaperture.nxdl.xml
… version of yaml. Removing unintensional comments
* Add nexus definitions/files for beam path description * Update base_classes/nyaml/NXopt_assembly.yaml Co-authored-by: Lukas Pielsticker <[email protected]> * Update base_classes/nyaml/NXopt_assembly.yaml Co-authored-by: Lukas Pielsticker <[email protected]> * Apply suggestions from code review Co-authored-by: Lukas Pielsticker <[email protected]> * Apply suggestions from code review Co-authored-by: Lukas Pielsticker <[email protected]> * Apply suggestions from code review Co-authored-by: Lukas Pielsticker <[email protected]> * Apply suggestions from code review Co-authored-by: Lukas Pielsticker <[email protected]> * Apply suggestions from code review Co-authored-by: Lukas Pielsticker <[email protected]> * Apply suggestions from code review Co-authored-by: Lukas Pielsticker <[email protected]> * Apply suggestions from code review Co-authored-by: Lukas Pielsticker <[email protected]> * add_NX_defs_for_beam_path * modifying_yaml_files * fixing_nyaml_make_file * Adjusted files with Sandor together according to earlier hardcoded .nxs file * Added the missing nxdl.xml files via nyaml2nxdl Version=0.0.8 was used for nyaml. * moved created nxdl.xml files to correct directory * Suggestions to fix ci/cd by in NXtransfer_matrix_table.yaml Co-authored-by: Florian Dobener <[email protected]> * renaming transfer_matrix_table to beam_transfermatrix_table and opt_element to beam_device; also merging NXopt_beam to NXbeam * remove old nxdl files --------- Co-authored-by: Ron Hildebrandt <[email protected]> Co-authored-by: Lukas Pielsticker <[email protected]> Co-authored-by: Florian Dobener <[email protected]> # Conflicts: # base_classes/nyaml/NXbeam.yaml
# Conflicts: # base_classes/nyaml/NXbeam.yaml
# Conflicts: # base_classes/nyaml/NXbeam.yaml
# Conflicts: # base_classes/nyaml/NXbeam.yaml
# Conflicts: # base_classes/NXmonochromator.nxdl.xml # base_classes/nyaml/NXbeam.yaml # base_classes/nyaml/NXmonochromator.yaml
# Conflicts: # base_classes/nyaml/NXbeam.yaml
# Conflicts: # base_classes/nyaml/NXbeam.yaml
suggestion from NIAC
Co-authored-by: RubelMozumder <[email protected]>
2529db0
to
c75d5c2
Compare
No description provided.