diff options
author | Thomas White <taw@physics.org> | 2023-05-02 10:56:10 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2023-05-02 10:57:26 +0200 |
commit | 2865d5f45f91cc630825c894f7e3445c075e0853 (patch) | |
tree | 72ac2981a4fefd2efdf162f13297f69723b734ad /libcrystfel/src/image.c | |
parent | 0e86f0160b13b13fc58eff33a0ce6887a6c322ee (diff) |
Remove image_write() and image_hdf5_write()
This code isn't needed any more, now that we don't simulate images. It
never worked very well - although we can read almost any sensible
format, writing images that match an arbitrary schema is very difficult.
See 41ed47a931e4c162c9a501981b6f19cd725f6e43 and https://gitlab.desy.de/thomas.white/crystfel/-/issues/81
Diffstat (limited to 'libcrystfel/src/image.c')
-rw-r--r-- | libcrystfel/src/image.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c index a0facd8c..1bc9fb52 100644 --- a/libcrystfel/src/image.c +++ b/libcrystfel/src/image.c @@ -1418,21 +1418,3 @@ void mark_resolution_range_as_bad(struct image *image, } } - - -int image_write(const struct image *image, - const DataTemplate *dtempl, - const char *filename) -{ - if ( is_hdf5_file(filename) ) { - #ifdef HAVE_HDF5 - return image_hdf5_write(image, dtempl, filename); - #else - ERROR("Can't write image - compiled without HDF5\n"); - return 1; - #endif - } - - ERROR("Can only write to HDF5 files.\n"); - return 1; -} |