Skip to content

Commit 126f3c5

Browse files
All restrictions now invoke dj.GeneralRelvar/restrict rather than append restrictions directly.
1 parent 9b1a573 commit 126f3c5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

+dj/GeneralRelvar.m

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,6 @@ function restrict(self, varargin)
344344
% tp.Scans & struct('mouse_id',3, 'scannum', 4);
345345
% tp.Scans & 'lens=10'
346346
% tp.Mice & (tp.Scans & 'lens=10')
347-
if ~iscell(arg)
348-
arg = {arg};
349-
end
350347
ret = self.copy;
351348
ret.restrict(arg)
352349
end
@@ -404,7 +401,7 @@ function restrict(self, varargin)
404401
'Antijoin only accepts single restrictions'))
405402
end
406403
ret = self.copy;
407-
ret.restrictions = [ret.restrictions {'not' arg}];
404+
ret.restrict('not', arg)
408405
end
409406

410407
function ret = pro(self, varargin)

0 commit comments

Comments
 (0)