You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
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
The text was updated successfully, but these errors were encountered:
I'm not really sure how to do that. Like, I see a button, but I don't see how to connect it with the code from my computer. I'm not that good at github and I'm not really set up to have my code save to a repository here. I mostly just download what I need from github to my local computer and then tinker with it. So I'm not really sure how to push/pull my code to you...
I think me describing the patch is easiest. I am still tinkering a little but the two things I did:
in loadFile.m line 107 I added a pause before the end (one line after "self.checkABFFiles". This gives the use time to address the popup that warns that some of the files are a different shape.
2). in loadFile.m after line 197 (after the try S = load_file+handle(self)' bit, but before the catch) I added the following:
if length(size(self.raw_data))>2
self.raw_data_size = [size(self.raw_data,1)*size(self.raw_data,3),size(self.raw_data,2)];
loadFile(self,src);
end
This bit of code will skip files of the wrong size (i.e. have sweeps, rather than continuous data), and will make the raw_data_size property have row number equal to the number of samples taken across all the sweeps, so that the total time this file took is accounted for when going through crabsort files later.
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
The text was updated successfully, but these errors were encountered: