diff options
author | Thomas White <taw@physics.org> | 2019-09-05 15:28:31 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-09-05 15:28:31 +0200 |
commit | 4640801af015f6eb46f12d17b22f8c0767a0091e (patch) | |
tree | 8613b401716b9e33e76a0517fc9f9edeed01f4ee /src/partialator.c | |
parent | 9fb94994155948fdc7c1f3034e4e628bad32484d (diff) |
Allow the polarsation correction to be completely disabled
Diffstat (limited to 'src/partialator.c')
-rw-r--r-- | src/partialator.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 : |