aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-03-06 16:10:53 +0100
committerThomas White <taw@physics.org>2012-03-06 16:10:53 +0100
commitd21f2eb608431cd11b93aa96de3c792713829b44 (patch)
tree4cd0cf3c4e7efd52d58ecad38b1a1b35b92d4508 /src
parent3710defb709b7ab33ae7849873c4fb62de96e138 (diff)
Don't include 1/d in reflection lists, because it's pointless
Diffstat (limited to 'src')
-rw-r--r--src/get_hkl.c19
-rw-r--r--src/partial_sim.c2
-rw-r--r--src/partialator.c2
-rw-r--r--src/process_hkl.c2
4 files changed, 4 insertions, 21 deletions
diff --git a/src/get_hkl.c b/src/get_hkl.c
index c1310418..905da569 100644
--- a/src/get_hkl.c
+++ b/src/get_hkl.c
@@ -77,8 +77,6 @@ static void show_help(const char *s)
"\n"
"Don't forget to specify the output filename:\n"
" -o, --output=<filename> Output filename (default: stdout).\n"
-" -p, --pdb=<filename> Use unit cell parameters from this PDB file to\n"
-" generate resolution values in the output file.\n"
);
}
@@ -364,7 +362,6 @@ int main(int argc, char *argv[])
char *beamfile = NULL;
struct beam_params *beam = NULL;
RefList *input;
- UnitCell *cell = NULL;
/* Long options */
const struct option longopts[] = {
@@ -379,7 +376,6 @@ int main(int argc, char *argv[])
{"intensities", 1, NULL, 'i'},
{"multiplicity", 0, &config_multi, 1},
{"beam", 1, NULL, 'b'},
- {"pdb", 1, NULL, 'p'},
{"trim-centrics", 0, &config_trimc, 1},
{0, 0, NULL, 0}
};
@@ -421,14 +417,6 @@ int main(int argc, char *argv[])
beamfile = strdup(optarg);
break;
- case 'p' :
- cell = load_cell_from_pdb(optarg);
- if ( cell == NULL ) {
- ERROR("Failed to get cell from '%s'\n", optarg);
- return 1;
- }
- break;
-
case 0 :
break;
@@ -453,11 +441,6 @@ int main(int argc, char *argv[])
}
}
- if ( cell == NULL ) {
- ERROR("You need to give a PDB file with the unit cell.\n");
- return 1;
- }
-
if ( holo_str != NULL ) {
holo = get_pointgroup(holo_str);
free(holo_str);
@@ -583,7 +566,7 @@ int main(int argc, char *argv[])
}
- write_reflist(output, input, cell);
+ write_reflist(output, input);
reflist_free(input);
diff --git a/src/partial_sim.c b/src/partial_sim.c
index b9cb69e5..90e29ce4 100644
--- a/src/partial_sim.c
+++ b/src/partial_sim.c
@@ -525,7 +525,7 @@ int main(int argc, char *argv[])
if ( random_intensities ) {
STATUS("Writing full intensities to %s\n", save_file);
- write_reflist(save_file, full, cell);
+ write_reflist(save_file, full);
}
if ( phist_file != NULL ) {
diff --git a/src/partialator.c b/src/partialator.c
index a834aeb3..eb2a8e52 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -556,7 +556,7 @@ int main(int argc, char *argv[])
STATUS("%i images could not be refined on the last cycle.\n", n_dud);
/* Output results */
- write_reflist(outfile, full, images[0].indexed_cell);
+ write_reflist(outfile, full);
/* Clean up */
for ( i=0; i<n_usable_patterns; i++ ) {
diff --git a/src/process_hkl.c b/src/process_hkl.c
index fb0f7fa4..05c5e059 100644
--- a/src/process_hkl.c
+++ b/src/process_hkl.c
@@ -617,7 +617,7 @@ int main(int argc, char *argv[])
hist_nbins);
}
- write_reflist(output, model, NULL);
+ write_reflist(output, model);
fclose(fh);