Methods
|
|
__init__
dump
load
locate
|
|
__init__
|
__init__ (
self,
database_name,
mode='store',
)
Exceptions
|
|
IOError, "Could not find the files %s and %s" %( self.dn, self.pn )
|
|
|
dump
|
dump (
self,
a,
identifier,
)
Dump NumPy array a with identifier.
Exceptions
|
|
NameError, "dump is not implemented; must be impl. in subclass"
|
|
|
load
|
load (
self,
identifier,
bestapprox=None,
)
Load NumPy array with identifier or find best approx.
Exceptions
|
|
NameError, "load is not implemented; must be impl. in subclass"
|
|
|
locate
|
locate (
self,
identifier,
bestapprox=None,
)
Find position in files where data corresponding
to identifier are stored.
bestapprox is a user-defined function for computing
the distance between two identifiers.
|
|