aboutsummaryrefslogtreecommitdiff
path: root/src/detector.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-06-21 17:06:20 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:50 +0100
commitd82e45831a94cae99730ad8f7ff48b4cf8e1cfb9 (patch)
tree248361ab767b6273009f1fc98c11768cacf5441c /src/detector.c
parent2ec9faae510e2eed77e60fbcf31f869a19fca9bf (diff)
Noisy row improvements
Handle noisy pixels per panel only Make the direction of elimination configurable
Diffstat (limited to 'src/detector.c')
-rw-r--r--src/detector.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/detector.c b/src/detector.c
index 55e9ec87..dcc5830d 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -248,6 +248,14 @@ struct detector *get_detector_geometry(const char *filename)
det->panels[np].clen = atof(bits[2]);
} else if ( strcmp(path[1], "res") == 0 ) {
det->panels[np].res = atof(bits[2]);
+ } else if ( strcmp(path[1], "badrow_direction") == 0 ) {
+ det->panels[np].badrow = bits[2][0];
+ if ( (det->panels[np].badrow != 'x')
+ && (det->panels[np].badrow != 'y') ) {
+ ERROR("badrow_direction must be 'x' or 'y'\n");
+ ERROR("Assuming 'x'\n.");
+ det->panels[np].badrow = 'x';
+ }
} else {
ERROR("Unrecognised field '%s'\n", path[1]);
}