Skip to content

Commit 720e75e

Browse files
authored
Merge pull request #1638 from TommasoLambresa/fix/NeoMatlabIO-kargs
Fix NeoMatlabIO write_block unused kargs
2 parents 1ef2a98 + 5589a6a commit 720e75e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

neo/io/neomatlabio.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,8 @@ def write_block(self, bl, **kargs):
281281
"""
282282
Arguments:
283283
bl: the block to be saved
284+
kargs: extra keyword arguments broadcasted to scipy.io.savemat
285+
284286
"""
285287
import scipy.io
286288

@@ -307,7 +309,7 @@ def write_block(self, bl, **kargs):
307309
else:
308310
group_structure[container_name].append(id(child_obj))
309311

310-
scipy.io.savemat(self.filename, {"block": bl_struct}, oned_as="row")
312+
scipy.io.savemat(self.filename, {"block": bl_struct}, oned_as="row", **kargs)
311313

312314
def _get_matlab_value(self, ob, attrname):
313315
units = None

0 commit comments

Comments
 (0)