From 4640801af015f6eb46f12d17b22f8c0767a0091e Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 5 Sep 2019 15:28:31 +0200 Subject: Allow the polarsation correction to be completely disabled --- src/partialator.c | 6 ++++-- src/process_hkl.c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/partialator.c b/src/partialator.c index ee577595..e92a80ac 100644 --- a/src/partialator.c +++ b/src/partialator.c @@ -952,7 +952,9 @@ int main(int argc, char *argv[]) PartialityModel pmodel = PMODEL_XSPHERE; int min_measurements = 2; char *rval; - struct polarisation polarisation = {.fraction = 1.0, .angle= 0.0}; + struct polarisation polarisation = {.fraction = 1.0, + .angle = 0.0, + .disable = 0}; int start_after = 0; int stop_after = 0; double max_adu = +INFINITY; @@ -1190,7 +1192,7 @@ int main(int argc, char *argv[]) break; case 15 : - polarisation.fraction = 0.5; + polarisation = parse_polarisation("none"); break; case 0 : diff --git a/src/process_hkl.c b/src/process_hkl.c index 4ace75f4..4e31e303 100644 --- a/src/process_hkl.c +++ b/src/process_hkl.c @@ -505,7 +505,9 @@ int main(int argc, char *argv[]) int hist_i; int space_for_hist = 0; char *histo_params = NULL; - struct polarisation polarisation = {.fraction = 1.0, .angle= 0.0}; + struct polarisation polarisation = {.fraction = 1.0, + .angle = 0.0, + .disable = 0}; char *rval; int min_measurements = 2; int r; @@ -677,7 +679,7 @@ int main(int argc, char *argv[]) break; case 11 : - polarisation.fraction = 0.5; + polarisation = parse_polarisation("none"); break; case 0 : -- cgit v1.2.3