diff options
author | Thomas White <taw@physics.org> | 2010-07-01 11:01:13 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:26:52 +0100 |
commit | 072ff6a884bf7c2cecd4dbb592456df175934427 (patch) | |
tree | 697be2f0885abe4b1866398e20f651ad8f160f12 | |
parent | c6bbfe2f938f4caa32335f9927efb3d2ea0284bc (diff) |
render_hkl: Be lenient on weighting specification
-rw-r--r-- | src/render_hkl.c | 6 |
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; |