[python-hdf5storage] 10/152: Fleshed out the rest of Marshallers.TypeMarshaller to support reading.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Feb 29 08:24:29 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 e042e6f612e53a444fa230c26c85e087e3e30c5f
Author: Freja Nordsiek <fnordsie at gmail.com>
Date: Sat Jan 11 20:12:12 2014 -0500
Fleshed out the rest of Marshallers.TypeMarshaller to support reading.
---
hdf5storage/Marshallers.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/hdf5storage/Marshallers.py b/hdf5storage/Marshallers.py
index 17e60f6..61e0ef9 100644
--- a/hdf5storage/Marshallers.py
+++ b/hdf5storage/Marshallers.py
@@ -37,6 +37,8 @@ class TypeMarshaller(object):
self.matlab_attributes = {'H5PATH'}
self.types = []
self.cpython_type_strings = []
+ self.makes_datasets = False
+ self.makes_groups = False
def get_type_string(self, data, type_string):
if type_string is not None:
@@ -73,6 +75,9 @@ class TypeMarshaller(object):
for attribute in (set(grp[name].attrs.keys()) - attributes_used):
del_attribute(grp[name], attribute)
+ def can_read(self, f, grp, name, options):
+ return False
+
def read(self, f, grp, name, options):
raise NotImplementedError('Can''t read data: ' + name)
--
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