[python-hdf5storage] 104/152: Fixed bugs where the name keyword argument was not updated to path in savemat and loadmat.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Feb 29 08:24:39 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag 0.1
in repository python-hdf5storage.
commit cd4309a20c6fbef5ab09aa829c0d32b26862e9e7
Author: Freja Nordsiek <fnordsie at gmail.com>
Date: Fri Feb 7 11:06:17 2014 -0500
Fixed bugs where the name keyword argument was not updated to path in savemat and loadmat.
---
hdf5storage/__init__.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hdf5storage/__init__.py b/hdf5storage/__init__.py
index 2ed4750..7209bf2 100644
--- a/hdf5storage/__init__.py
+++ b/hdf5storage/__init__.py
@@ -1138,13 +1138,13 @@ def savemat(file_name, mdict, appendmat=True, format='7.3',
added_first_variable = False
for name in mdict:
if not added_first_variable:
- write(mdict[name], name, filename=file_name,
+ write(mdict[name], path=name, filename=file_name,
truncate_existing=truncate_existing,
truncate_invalid_matlab=truncate_invalid_matlab,
options=options)
added_first_variable = True
else:
- write(mdict[name], name, filename=file_name,
+ write(mdict[name], path=name, filename=file_name,
truncate_existing=False,
truncate_invalid_matlab=False,
options=options)
@@ -1232,7 +1232,7 @@ def loadmat(file_name, mdict=None, appendmat=True,
# Read everything if we were instructed.
if variable_names is None:
- return read(name='/', filename=filename, options=options)
+ return read(path='/', filename=filename, options=options)
# Read all the variables, stuff them into mdict, and return it.
if mdict is None:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-hdf5storage.git
More information about the debian-science-commits
mailing list