From 41e2f5abf75c614eb8c667c116b1fe3375d7ad94 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 1 Dec 2016 10:57:20 -0600 Subject: [PATCH] fixed finite mask bug, bypass file size detection because it doesn't work for large files --- stim/envi/envi.h | 22 +++++++++++++++++++--- stim/envi/hsi.h | 2 +- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/stim/envi/envi.h b/stim/envi/envi.h index bca10ea..a19652a 100644 --- a/stim/envi/envi.h +++ b/stim/envi/envi.h @@ -83,8 +83,22 @@ public: return true; } + static size_t file_size(std::string filename){ + FILE *p_file = NULL; + p_file = fopen(filename.c_str(),"rb"); + if(!p_file){ + std::cout<<"ERROR: could not open "<