Commit fc7aaadc authored by Thomas White's avatar Thomas White
Browse files

process_hkl: Don't require unit cell

parent e34c96e5
......@@ -468,12 +468,16 @@ int main(int argc, char *argv[])
output = strdup("processed.hkl");
}
cell = load_cell_from_pdb(pdb);
if ( cell == NULL ) {
ERROR("Failed to load cell from '%s'\n", pdb);
return 1;
if ( pdb != NULL ) {
cell = load_cell_from_pdb(pdb);
if ( cell == NULL ) {
ERROR("Failed to load cell from '%s'\n", pdb);
return 1;
}
free(pdb);
} else {
cell = NULL;
}
free(pdb);
if ( sym == NULL ) sym = strdup("1");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment