Table of Contents

Class: NumPyDB_shelve py4cs/NumPyDB.py

Implement the database via shelving.

Methods   
__init__
dump
load
locate
  __init__ 
__init__ (
        self,
        database_name,
        mode='store',
        )

  dump 
dump (
        self,
        a,
        identifier,
        )

Dump NumPy array a with identifier.

  load 
load (
        self,
        identifier,
        bestapprox=None,
        )

Load NumPy array with a given identifier. In case the identifier is not found, bestapprox != None means that an approximation is sought. The bestapprox argument is then taken as a function that can be used for computing the distance between two identifiers id1 and id2.

  locate 
locate (
        self,
        identifier,
        bestapprox=None,
        )

Return identifier key in shelf.


Table of Contents

This document was automatically generated on Sun Mar 14 15:31:01 2004 by HappyDoc version 2.1