From 6b23f02516c48b614b484886219971fee3e3e92b Mon Sep 17 00:00:00 2001 From: woutdenolf Date: Tue, 20 Aug 2024 13:49:24 +0200 Subject: [PATCH] #edges = #data_points + 1 --- base_classes/NXdata.nxdl.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/base_classes/NXdata.nxdl.xml b/base_classes/NXdata.nxdl.xml index f8fe253c3a..3611a5e75a 100644 --- a/base_classes/NXdata.nxdl.xml +++ b/base_classes/NXdata.nxdl.xml @@ -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