From 3a554be4bca8f565a9ba81ec9f96c9455b93a706 Mon Sep 17 00:00:00 2001 From: Andreas Schenk <andreas_schenk@hms.harvard.edu> Date: Fri, 15 Jun 2012 15:19:58 -0400 Subject: [PATCH] added CCP4 class to img io export correctly set export feature flag for dm3 --- modules/io/pymod/export_map_io.cc | 4 ++++ modules/io/src/img/map_io_dm3_handler.hh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/io/pymod/export_map_io.cc b/modules/io/pymod/export_map_io.cc index afe494d19..641b99b42 100644 --- a/modules/io/pymod/export_map_io.cc +++ b/modules/io/pymod/export_map_io.cc @@ -116,6 +116,10 @@ void export_map_io() .def("GetEndianessOnSave", &MRC::GetEndianessOnSave) ; + class_<CCP4, bases<MRC> >("CCP4", init<bool,Endianess> + ((arg("normalize_on_save") = false,arg("endianess_on_save")=OST_LOCAL_ENDIAN))) + ; + class_<DM3, bases<ImageFormatBase> >("DM3", init<>()) ; diff --git a/modules/io/src/img/map_io_dm3_handler.hh b/modules/io/src/img/map_io_dm3_handler.hh index 89d5f87c1..97191f67e 100644 --- a/modules/io/src/img/map_io_dm3_handler.hh +++ b/modules/io/src/img/map_io_dm3_handler.hh @@ -50,7 +50,7 @@ class DLLEXPORT_OST_IO MapIODm3Handler: public MapIOHandler static bool MatchType(const ImageFormatBase& type); static bool MatchSuffix(const String& loc); static bool ProvidesImport() { return true; } - static bool ProvidesExport() { return true; } + static bool ProvidesExport() { return false; } static String GetFormatName() { return String("Dm3"); } static String GetFormatDescription() {return String("Format used by Gatan Inc.'s Digital Micrograph software");} -- GitLab