Skip to content

Commit

Permalink
Merge branch 'dimension_as_char' into detector_channel
Browse files Browse the repository at this point in the history
  • Loading branch information
phyy-nx committed Sep 20, 2023
2 parents 355b408 + ac8c5d0 commit 6e924a0
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions base_classes/NXdata.nxdl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@

* ".": All the data in this dimension should be included
* Integer: Only this slice should be used.
* String: Only this slice should be used. Use if AXISNAME_indices is a string
* String: Only this slice should be used. Use if ``AXISNAME`` is a string
array.

Example::
Expand All @@ -148,7 +148,15 @@

Alternate version using an integer would look like this (note 2 is a string)::

@default_slice = [".", "2", ".", "."]
data:NXdata
@signal = "data"
@axes = ["image_id", "channel", ".", "."]
@image_id_indices = 0
@channel_indices = 1
@default_slice = [".", "2", ".", "."]
image_id = [1, ..., nP]
channel = ["threshold_1", "threshold_2", "difference"]
data = uint[nP, nC, i, j]

</doc>
</attribute>
Expand Down

0 comments on commit 6e924a0

Please sign in to comment.