aboutsummaryrefslogtreecommitdiff
path: root/src/render_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-07-01 11:01:13 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:52 +0100
commit072ff6a884bf7c2cecd4dbb592456df175934427 (patch)
tree697be2f0885abe4b1866398e20f651ad8f160f12 /src/render_hkl.c
parentc6bbfe2f938f4caa32335f9927efb3d2ea0284bc (diff)
render_hkl: Be lenient on weighting specification
Diffstat (limited to 'src/render_hkl.c')
-rw-r--r--src/render_hkl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/render_hkl.c b/src/render_hkl.c
index 7e9317f5..46ba4c89 100644
--- a/src/render_hkl.c
+++ b/src/render_hkl.c
@@ -357,8 +357,14 @@ int main(int argc, char *argv[])
wght = WGHT_SQRTI;
} else if ( strcmp(weighting, "count") == 0 ) {
wght = WGHT_COUNTS;
+ } else if ( strcmp(weighting, "counts") == 0 ) {
+ wght = WGHT_COUNTS;
} else if ( strcmp(weighting, "rawcts") == 0 ) {
wght = WGHT_RAWCOUNTS;
+ } else if ( strcmp(weighting, "rawcount") == 0 ) {
+ wght = WGHT_RAWCOUNTS;
+ } else if ( strcmp(weighting, "rawcounts") == 0 ) {
+ wght = WGHT_RAWCOUNTS;
} else {
ERROR("Unrecognised weighting '%s'\n", weighting);
return 1;