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 Mar 20, 2024. It is now read-only.
settings.xml doesn't always (at least when I'm running it) have the processor name as the second attribute (line 38 in the code). Not sure if this is an issue with the code writing the settings file or the way Matlab reads it. I wrote a quick loop to step through the attributes to identify the "name" and tried to submit it for revision but I'm new to working with this kind of collaborative system and am not sure I did it right. I changed lines 37 & 38:
for procAtt = 0:xProcessor.getAttributes.getLength-1
if strcmp(xProcessor.getAttributes.item(procAtt).getNodeName, 'NodeId')
nodeId = str2num(char(xProcessor.getAttributes.item(procAtt).getValue));
elseif strcmp(xProcessor.getAttributes.item(procAtt).getNodeName, 'name')
processorName = char(xProcessor.getAttributes.item(procAtt).getValue);
end
end
With the previous code the later code using strcmp to check for the 'Filters/Spike Detector' node (line 44 I believe):
if strcmp(processorName, 'Filters/Spike Detector')
was not working because it wasn't correctly pulling the "name" attribute. Additionally, the output from the file was not correctly including the processor names as strings in the second column of the output "info."
Edit: code blocks weren't being formatted properly.
The text was updated successfully, but these errors were encountered:
ethanbb
added a commit
to tne-lab/analysis-tools
that referenced
this issue
Oct 23, 2017
settings.xml doesn't always (at least when I'm running it) have the processor name as the second attribute (line 38 in the code). Not sure if this is an issue with the code writing the settings file or the way Matlab reads it. I wrote a quick loop to step through the attributes to identify the "name" and tried to submit it for revision but I'm new to working with this kind of collaborative system and am not sure I did it right. I changed lines 37 & 38:
into the following loop:
With the previous code the later code using strcmp to check for the 'Filters/Spike Detector' node (line 44 I believe):
was not working because it wasn't correctly pulling the "name" attribute. Additionally, the output from the file was not correctly including the processor names as strings in the second column of the output "info."
Edit: code blocks weren't being formatted properly.
The text was updated successfully, but these errors were encountered: