From abb832b815327d981f6f5fe9172717987ffccabe Mon Sep 17 00:00:00 2001 From: David Mayerich Date: Tue, 7 Mar 2017 16:40:27 -0600 Subject: [PATCH] fixed drive letter problems in stim::filename --- stim/grids/image_stack.h | 5 +++-- stim/math/spharmonics.h | 4 ++-- stim/parser/filename.h | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/stim/grids/image_stack.h b/stim/grids/image_stack.h index fdd0ebf..3594429 100644 --- a/stim/grids/image_stack.h +++ b/stim/grids/image_stack.h @@ -155,12 +155,13 @@ public: void save_images(std::string file_mask){ stim::filename file_path(file_mask); + //stim::filename abs_file_path = file_pat //create a list of file names std::vector file_list = stim::wildcards::increment(file_path.str(), 0, R[3]-1, 1); - - for(int i=0; i > sph_pts, unsigned int l, int m, stim::vec3 c = stim::vec3(0, 0, 0), unsigned int n = 1000, bool norm = true, std::vector w = std::vector()) + /*void pdf(std::vector > sph_pts, unsigned int l, int m, stim::vec3 c = stim::vec3(0, 0, 0), unsigned int n = 1000, bool norm = true, std::vector w = std::vector()) { std::vector weights; ///the weight at each point on the surface of the sphere. // weights.resize(n); @@ -223,7 +223,7 @@ namespace stim { } } mcEnd(); - } + }*/ std::string str() { diff --git a/stim/parser/filename.h b/stim/parser/filename.h index c3573c2..2a28048 100644 --- a/stim/parser/filename.h +++ b/stim/parser/filename.h @@ -65,6 +65,7 @@ protected: std::string current_drive; std::vector current_dir; parse_path(current_drive, current_dir, current); //get the current drive and directories + drive = current_drive; //all relative paths have to be relative to the current drive if (current_dir.size() > 0) { // step through each directory in the relative path, adjusting the current directory @@ -91,7 +92,6 @@ protected: } /// Parses a directory string into a drive (NULL if not Windows) and list of hierarchical directories - /// Returns true if the path is relative, false if it is absolute void parse_path(std::string &drive, std::vector &absolute, std::string dir){ drive = ""; //initialize the drive to NULL (it will stay that way for Windows) std::vector path; -- libgit2 0.21.4