Skip to content

Commit

Permalink
#edges = #data_points + 1
Browse files Browse the repository at this point in the history
  • Loading branch information
woutdenolf committed Aug 20, 2024
1 parent 0bf8672 commit 6b23f02
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions base_classes/NXdata.nxdl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,10 @@

6. The shape of an :ref:`AXISNAME </NXdata/AXISNAME-field>` field must correspond to the shape of the
:ref:`DATA </NXdata/DATA-field>` dimensions it spans. This means that for each dimension ``i`` in ``[0, AXISNAME.ndim)``
spanned by an :ref:`AXISNAME </NXdata/AXISNAME-field>` field the number of data points along this dimension
``DATA.shape[AXISNAME_indices[i]]`` must be equal to the number of axis values along this dimension ``AXISNAME.shape[i]``
or the number of bin edges ``AXISNAME.shape[i]+1`` in case of histogram data.
spanned by axis field :ref:`AXISNAME </NXdata/AXISNAME-field>`, the number of axis values ``AXISNAME.shape[i]``
along dimension ``i`` must be equal to the number of data points ``DATA.shape[AXISNAME_indices[i]]`` along dimension ``i``
or one more than the number of data points ``DATA.shape[AXISNAME_indices[i]]+1`` in case the
:ref:`AXISNAME </NXdata/AXISNAME-field>` field contains histogram bin edges along dimension ``i``.

Highlight consequences that follow the definition

Expand Down

0 comments on commit 6b23f02

Please sign in to comment.