crabsort crashed if I had files of different protocols within the same folder (i.e. I would be recording continuously and then do some current or voltage clamp sweeps). I solved the problem going into "loadfile.m" and adding the following lines of code at line 197.
if length(size(self.raw_data))>2
loadFile(self,src);
end
This pice of code checks to see if there are multiple sweeps (which adds a third dimension to raw_data), and if it finds it, it reloads the next file. This continues until a file with the format of a single sweep is encountered. It seems to be working pretty well so far
crabsort crashed if I had files of different protocols within the same folder (i.e. I would be recording continuously and then do some current or voltage clamp sweeps). I solved the problem going into "loadfile.m" and adding the following lines of code at line 197.
This pice of code checks to see if there are multiple sweeps (which adds a third dimension to raw_data), and if it finds it, it reloads the next file. This continues until a file with the format of a single sweep is encountered. It seems to be working pretty well so far