aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/detgeom.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-06-15 12:07:14 +0200
committerThomas White <taw@physics.org>2023-07-28 13:22:05 +0200
commitaada11e09edca22f816f4471c73fff6d6a383256 (patch)
tree798a9c90c85fd27dee780a95ecab1526299b0db8 /libcrystfel/src/detgeom.c
parentc6115928bb875b0ed408655ff12b9ca00dae017c (diff)
detgeom: Add references from children to parents
This allows us to start from the panel and work upwards to the top-level group, which makes hierarchical gradient calculation much easier.
Diffstat (limited to 'libcrystfel/src/detgeom.c')
-rw-r--r--libcrystfel/src/detgeom.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcrystfel/src/detgeom.c b/libcrystfel/src/detgeom.c
index 7f458343..988d3f28 100644
--- a/libcrystfel/src/detgeom.c
+++ b/libcrystfel/src/detgeom.c
@@ -199,7 +199,9 @@ static void detgeom_show_group(const struct detgeom_panel_group *group, int leve
return;
}
- STATUS("%s\n", group->name);
+ STATUS("%s (level %i, index %i)\n", group->name,
+ group->hierarchy_level,
+ group->member_index);
for ( i=0; i<group->n_children; i++ ) {
detgeom_show_group(group->children[i], level+1);