diff options
author | Thomas White <taw@physics.org> | 2015-03-17 17:26:07 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-04-20 15:50:39 +0200 |
commit | c18a02f6e07ad21fee5c7e6a1fc0e6f64efba17c (patch) | |
tree | ed1c40981a93eaacbc8dd16a38d8eb7cb08d9e19 /libcrystfel | |
parent | e9bdc3984e6693aff913e37c0d6afebec6511530 (diff) |
Throw out crystals which could not be refined
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/stream.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c index 78ac9a40..abc08c06 100644 --- a/libcrystfel/src/stream.c +++ b/libcrystfel/src/stream.c @@ -842,7 +842,10 @@ int write_chunk(Stream *st, struct image *i, struct hdfile *hdfile, } for ( j=0; j<i->n_crystals; j++ ) { - ret = write_crystal(st, i->crystals[j], include_reflections); + if ( crystal_get_user_flag(i->crystals[j]) == 0 ) { + ret = write_crystal(st, i->crystals[j], + include_reflections); + } } fprintf(st->fh, CHUNK_END_MARKER"\n"); |