diff --git a/Device/Histo/IntensityDataIOFactory.cpp b/Device/Histo/IntensityDataIOFactory.cpp index 055f14363760778d55f1b00fe231bd892d0066a3..9fa48e0456fc86433530f061bcbbaf181d8e6b1c 100644 --- a/Device/Histo/IntensityDataIOFactory.cpp +++ b/Device/Histo/IntensityDataIOFactory.cpp @@ -58,10 +58,10 @@ OutputData<double>* IntensityDataIOFactory::readOutputData(const std::string& fi return readOutputData( file_name, [](std::istream& s) { return OutputDataReadWriteTiff().readOutputData(s); }); #endif + // Try to read ASCII by default. Binary maps to ASCII. // If the file is not actually a matrix of numbers, // the error will be thrown during the reading. - return readOutputData( file_name, [](std::istream& s) { return OutputDataReadWriteNumpyTXT().readOutputData(s); }); }