Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
Fixed small bug in buildWorkerCoonfigScript. Now works as intended, it was getting the two modalities mixed up.

Fixed ismethod issue in numArgsFromSub. in nigelObj. references #86.
  • Loading branch information
Federico committed May 14, 2020
1 parent baad50c commit 222ad09
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions +nigeLab/+utils/buildWorkerConfigScript.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
case {'remote','fromremote'}
% Just makes sure nigeLab is added to path (didn't work for MM)
% This works if the method is queued FROM repo on remote location:
p = varargin{1};
p = getNigelPath('UNC');
if ~iscell(p)
p = {p};
end
Expand All @@ -45,7 +45,7 @@
case {'local','fromlocal'}
% "Wrap" everything in a script that is executed by the worker,
% instead of the `doAction`
p = getNigelPath('UNC');
p = varargin{1};
if ~iscell(p)
p = {p};
end
Expand Down
11 changes: 6 additions & 5 deletions +nigeLab/@nigelObj/nigelObj.m
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
ChildContainer % Container for .Children Dependent property
ChildListener event.listener % Listens for changes in object Children
GUIContainer nigeLab.libs.DashBoard % Container for handle to GUI (nigeLab.libs.DashBoard)
TreeNodeContainer uiw.widget.TreeNode % Container for handle to Tree nodes in the nigelTree obj
TreeNodeContainer % Container for handle to Tree nodes in the nigelTree obj
ParentListener event.listener % Listens for changes in object Parent
PropListener event.listener % Listens for changes in properties of this object
SortGUIContainer nigeLab.Sort % Container for handle to Spike Sorting GUI (nigeLab.Sort)
Expand Down Expand Up @@ -547,10 +547,11 @@ function delete(obj)
n = builtin('numArgumentsFromSubscript',nigelObj,s,indexingContext);
end
case '.'
if ismethod(nigelObj,s(1).subs)
meta = metaclass(nigelObj);
methods = meta.MethodList;
thisMethod = methods(strcmp({methods.Name},s(1).subs));
meta = metaclass(nigelObj);
methods = meta.MethodList;
methodIdx = strcmp({methods.Name},s(1).subs);
if any(methodIdx)
thisMethod = methods(methodIdx);
n = numel(thisMethod.OutputNames);
else
switch class(nigelObj)
Expand Down

0 comments on commit 222ad09

Please sign in to comment.