aboutsummaryrefslogtreecommitdiff
path: root/src/process_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-09-05 15:28:31 +0200
committerThomas White <taw@physics.org>2019-09-05 15:28:31 +0200
commit4640801af015f6eb46f12d17b22f8c0767a0091e (patch)
tree8613b401716b9e33e76a0517fc9f9edeed01f4ee /src/process_hkl.c
parent9fb94994155948fdc7c1f3034e4e628bad32484d (diff)
Allow the polarsation correction to be completely disabled
Diffstat (limited to 'src/process_hkl.c')
-rw-r--r--src/process_hkl.c6
1 files changed, 4 insertions, 2 deletions
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 :