aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenzo Galli <lorenzo.galli@desy.de>2014-05-23 14:43:44 +0200
committerThomas White <taw@physics.org>2014-05-23 20:46:59 +0200
commitd01f8349223705860c53d78414b758575aa3e816 (patch)
tree53e0fb4c12d9586c630085795e0012db082ffdfc
parent6d00dece91824e8f7fcd5ba646d5246914e6c0a9 (diff)
gen-sfs didn't output the phases in the .hkl file
-rwxr-xr-xscripts/gen-sfs4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gen-sfs b/scripts/gen-sfs
index fb178102..3c540a43 100755
--- a/scripts/gen-sfs
+++ b/scripts/gen-sfs
@@ -86,8 +86,8 @@ while ( \$line = <FILE> ) {
my \$intensity = \$4*\$4; # Square to convert F->I
my \$phase = \$5;
- printf("%4i %4i %4i %10.2f %s %10.2f %7i\n",
- \$h, \$k, \$l, \$intensity, " -", 0.0, 1);
+ printf("%4i %4i %4i %10.2f %8.2f %10.2f %7i\n",
+ \$h, \$k, \$l, \$intensity, \$phase, 0.0, 1);
} else {
printf(STDERR "Couldn't understand line '%s'\n", \$line);