From 5589a6ac3cca81016c23e32a07c8d259dc3daf54 Mon Sep 17 00:00:00 2001 From: TommasoLambresa Date: Wed, 29 Jan 2025 11:52:02 +0100 Subject: [PATCH] Fix NeoMatlabIO write_block unused kargs --- neo/io/neomatlabio.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/neo/io/neomatlabio.py b/neo/io/neomatlabio.py index 3026e3ebc..18c2cdb03 100644 --- a/neo/io/neomatlabio.py +++ b/neo/io/neomatlabio.py @@ -281,6 +281,8 @@ def write_block(self, bl, **kargs): """ Arguments: bl: the block to be saved + kargs: extra keyword arguments broadcasted to scipy.io.savemat + """ import scipy.io @@ -307,7 +309,7 @@ def write_block(self, bl, **kargs): else: group_structure[container_name].append(id(child_obj)) - scipy.io.savemat(self.filename, {"block": bl_struct}, oned_as="row") + scipy.io.savemat(self.filename, {"block": bl_struct}, oned_as="row", **kargs) def _get_matlab_value(self, ob, attrname): units = None