Skip to content

Commit

Permalink
Code review
Browse files Browse the repository at this point in the history
Change NXdata scaling_factor to refer to "plotted" data
Change NXdata to refer to "corrected" data, in addition to "physical" data, since it describes units of photons
  • Loading branch information
phyy-nx committed Jan 3, 2024
1 parent 1ddde5a commit 6c4b856
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion applications/NXmx.nxdl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@

corrected_data = (data + offset) * scaling_factor

This formula will derive the actual physical value, when necessary.
This formula will derive the corrected value, when necessary.

Use these fields to specify gain and/or pedestal constants that need to be applied
to the data to correct it to physical values. For example, if the detector gain
Expand Down
4 changes: 2 additions & 2 deletions base_classes/NXdata.nxdl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,9 @@

.. code-block::

corrected_data = (data + offset) * scaling_factor
plotted_data = (data + offset) * scaling_factor

This formula will derive the actual physical value, when necessary.
This formula will derive the value to plot, when necessary.
</doc>
</field>
<field name="offset" type="NX_FLOAT">
Expand Down

0 comments on commit 6c4b856

Please sign in to comment.