From d6eec1136923c9e63407014b577e50fa4b94cd24 Mon Sep 17 00:00:00 2001
From: Ansgar Philippsen <ansgar.philippsen@gmail.com>
Date: Tue, 13 Nov 2012 10:59:48 -0500
Subject: [PATCH] fudged ccp4 to default to little endian when encountering
 unknown machine stamp

---
 modules/io/src/img/map_io_mrc_handler.cc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/io/src/img/map_io_mrc_handler.cc b/modules/io/src/img/map_io_mrc_handler.cc
index 587958bf0..c4db2b02c 100644
--- a/modules/io/src/img/map_io_mrc_handler.cc
+++ b/modules/io/src/img/map_io_mrc_handler.cc
@@ -483,7 +483,9 @@ public:
       LOG_DEBUG("CCP4Import: reading little endian data");
       return OST_LITTLE_ENDIAN;
     } else{
-      throw(IOException("CCP4Import: Cray, Convex native and Fijitsu VP formats are not supported."));
+      LOG_VERBOSE("unknown machine stamp (" << (int)float_machst << "), using little endian");
+      return OST_LITTLE_ENDIAN;
+      //throw(IOException("CCP4Import: Cray, Convex native and Fijitsu VP formats are not supported."));
     }
   }
 
@@ -495,7 +497,7 @@ public:
 
     LOG_INFO("ccp4 header:");
     header_base::Print();
-    LOG_INFO(" arms: " << arms);
+    LOG_INFO("arms: " << arms);
   }
 
   int lskflag;
-- 
GitLab