Skip to content

Commit

Permalink
Fix NeoMatlabIO write_block unused kargs
Browse files Browse the repository at this point in the history
  • Loading branch information
TommasoLambresa committed Jan 29, 2025
1 parent 1ef2a98 commit 5589a6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion neo/io/neomatlabio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 5589a6a

Please sign in to comment.