Skip to content

Commit

Permalink
Irrespective of monitor type, axis2 should be included
Browse files Browse the repository at this point in the history
(for list it shows the column significance in the NeXus format)
  • Loading branch information
willend committed Sep 10, 2024
1 parent 75e1c6d commit 76d7ae5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions common/lib/share/mccode-r.c
Original file line number Diff line number Diff line change
Expand Up @@ -2019,15 +2019,15 @@ int mcdetector_out_data_nexus(NXhandle f, MCDETECTOR detector)
if (!strcasestr(detector.format, "list")) {
mcdetector_out_axis_nexus(f, detector.xlabel, detector.xvar,
1, detector.m, detector.xmin, detector.xmax);

mcdetector_out_axis_nexus(f, detector.ylabel, detector.yvar,
2, detector.n, detector.ymin, detector.ymax);


mcdetector_out_axis_nexus(f, detector.zlabel, detector.zvar,
3, detector.p, detector.zmin, detector.zmax);

} /* !list */

// For the list mode, column significance is in axis 2, i.e. always meaningful to include
mcdetector_out_axis_nexus(f, detector.ylabel, detector.yvar,
2, detector.n, detector.ymin, detector.ymax);

/* write the actual data (appended if already exists) */
if (!strcasestr(detector.format, "list") && !strcasestr(detector.format, "pixels")) {
mcdetector_out_array_nexus(f, "data", detector.p1, detector);
Expand Down

0 comments on commit 76d7ae5

Please sign in to comment.