aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorValerio Mariani <valerio.mariani@desy.de>2014-03-31 10:26:40 +0200
committerThomas White <taw@physics.org>2014-09-05 18:03:30 +0200
commit6b889daf0d737c7c921ba80818b0b008e4de86af (patch)
treeb58fbda31bb11000a60b03617d3d0bb7cc8f7044 /libcrystfel/src
parent22dcf392e23945d31cab713a752afbd3d9da76ca (diff)
orig_minxx and orig_maxss are initialized when geometry is loaded as opposed to when the image is loaded
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/detector.c5
-rw-r--r--libcrystfel/src/hdf5-file.c5
2 files changed, 5 insertions, 5 deletions
diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c
index 7ceaddbd..2ccf6a75 100644
--- a/libcrystfel/src/detector.c
+++ b/libcrystfel/src/detector.c
@@ -1060,6 +1060,11 @@ struct detector *get_detector_geometry(const char *filename)
max_ss = det->panels[i].max_ss;
}
+ det->panels[i].orig_max_fs = det->panels[i].max_fs;
+ det->panels[i].orig_min_fs = det->panels[i].min_fs;
+ det->panels[i].orig_max_ss = det->panels[i].max_ss;
+ det->panels[i].orig_min_ss = det->panels[i].min_ss;
+
}
for ( i=0; i<det->n_bad; i++ ) {
diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c
index 333e1fff..fa5c127d 100644
--- a/libcrystfel/src/hdf5-file.c
+++ b/libcrystfel/src/hdf5-file.c
@@ -911,11 +911,6 @@ int hdf5_read2(struct hdfile *f, struct image *image, const char* element, int s
struct panel *p;
p=&image->det->panels[pi];
- if ( p->orig_min_fs == -1 ) p->orig_min_fs = p->min_fs;
- if ( p->orig_max_fs == -1 ) p->orig_max_fs = p->max_fs;
- if ( p->orig_min_ss == -1 ) p->orig_min_ss = p->min_ss;
- if ( p->orig_max_ss == -1 ) p->orig_max_ss = p->max_ss;
-
if ( override_data_and_mask ) {
fail = hdfile_set_image(f, element);
} else {