diff options
author | Thomas White <taw@physics.org> | 2013-05-24 12:07:09 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2013-05-27 17:33:15 +0200 |
commit | 6910e4ef415ea627d95e99ded041725d16874eb7 (patch) | |
tree | 8ffda58413a3071c55e16e95294a21cf8d7f9c8f /libcrystfel/src/detector.c | |
parent | b990cd2c63a68433ed780f1f3400601bec759c5b (diff) |
Assign rigid group for panels which don't have one
Diffstat (limited to 'libcrystfel/src/detector.c')
-rw-r--r-- | libcrystfel/src/detector.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c index 09f33d5d..f7ff135e 100644 --- a/libcrystfel/src/detector.c +++ b/libcrystfel/src/detector.c @@ -984,7 +984,7 @@ out: det->max_fs = max_fs; det->max_ss = max_ss; - /* Calculate matrix inverse */ + /* Calculate matrix inverses and other stuff */ for ( i=0; i<det->n_panels; i++ ) { struct panel *p; @@ -1006,8 +1006,11 @@ out: p->w = p->max_fs - p->min_fs + 1; p->h = p->max_ss - p->min_ss + 1; - } + if ( p->rigid_group == NULL ) { + p->rigid_group = find_or_add_rg(det, p->name); + } + } find_min_max_d(det); |