Andreas Hilboll (el 2009-02-02 a les 19:32:35 +0100) va dir:: > import tables as t > class HDF5file(t.File) : > def __init__(self, filename, mode="r", title="", rootUEP="/", > filters=None, **params) : > super(HDF5file, self).__init__(filename, mode, title, rootUEP, > filters, params) > > > And the error I get: > > >>> from HDF5file import * > >>> h = HDF5file('bla.h5') > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > TypeError: function takes exactly 8 arguments (1 given)
Simple omission: you forgot to apply keyword parameters to the call instead of passing them as a dictionary:: super(HDF5file, self).__init__( filename, mode, title, rootUEP, filters, **params ) (I didn't test it, but it looks like that's it.) :: Ivan Vilata i Balaguer @ Intellectual property is the worst offense @ http://www.selidor.net/ @ against human intelligence. @
signature.asc
Description: Digital signature
------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users