Skip to content

Commit

Permalink
Merge pull request #1638 from TommasoLambresa/fix/NeoMatlabIO-kargs
Browse files Browse the repository at this point in the history
Fix NeoMatlabIO write_block unused kargs
  • Loading branch information
apdavison authored Jan 30, 2025
2 parents 1ef2a98 + 5589a6a commit 720e75e
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 720e75e

Please sign in to comment.