@@ -265,7 +265,7 @@ def is_function_processor_working(self):
265
265
def _json_response (self , ** kwargs ):
266
266
return json .loads (self ._response (** kwargs ), object_hook = decode_pymat )
267
267
268
- def run_func (self , func_path , * args , nargout = 1 , ** kwargs ):
268
+ def run_func (self , func_path , * args , ** kwargs ):
269
269
"""Run a function in Matlab and return the result.
270
270
271
271
Parameters
@@ -285,6 +285,7 @@ def run_func(self, func_path, *args, nargout=1, **kwargs):
285
285
-------
286
286
Result dictionary with keys: 'message', 'result', and 'success'
287
287
"""
288
+ nargout = kwargs .pop ('nargout' , 1 )
288
289
args += tuple (item for pair in zip (kwargs .keys (), kwargs .values ())
289
290
for item in pair )
290
291
return self ._json_response (cmd = 'run_function' ,
@@ -522,7 +523,7 @@ def __init__(self, parent, name):
522
523
self ._parent = parent
523
524
self .doc = None
524
525
525
- def __call__ (self , unused_parent_weakref , * args , nargout = 1 , ** kwargs ):
526
+ def __call__ (self , unused_parent_weakref , * args , ** kwargs ):
526
527
"""Call a function with the supplied arguments in the Matlab subprocess
527
528
528
529
Passes parameters to `run_func`.
0 commit comments