Commit 5cda84ab0bf354d736715ee44b861815b00519aa
1 parent
6156690f
putting pranathi on volume spider
Showing
2 changed files
with
8 additions
and
2 deletions
Show diff stats
grids/image_stack.h
... | ... | @@ -33,7 +33,13 @@ public: |
33 | 33 | } |
34 | 34 | |
35 | 35 | //get the list of files |
36 | - std::vector<stim::filename> file_list = file_path.get_list(); | |
36 | + std::vector<stim::filename> file_list;// = file_path.get_list | |
37 | + | |
38 | + //if there are no matching files, exit | |
39 | + if(file_list.size() == 0){ | |
40 | + std::cout<<"STIM ERROR (image_stack): No matching files for loading a stack."<<std::endl; | |
41 | + exit(1); | |
42 | + } | |
37 | 43 | |
38 | 44 | //load the first image and set all of the image_stack properties |
39 | 45 | stim::image<T> I(file_list[0].str()); | ... | ... |