Table of Contents

Module: NumPyDB py4cs/NumPyDB.py

Efficient database for numarray objects.

Imported modules   
import cPickle
import os
import pickle
from py4cs.numtools import *
import re
import shelve
import sys
Functions   
float_dist
main
test_dist
  float_dist 
float_dist ( id1,  id2 )

Compute distance between two identities for NumPyDB. Assumption: id1 and id2 are real numbers (but always sent as strings). This function is typically used when time values are used as identifiers.

  main 
main (
        n,
        length,
        method,
        name,
        )

Exceptions   
"illegal method name='%s'" % method
  test_dist 
test_dist ( id1,  id2 )

Return distance between identifiers id1 and id2. The identifiers are of the form time=some number.

Classes   

NumPyDB

NumPyDB_arrPickle

Use NumPy's pickle functionality.

NumPyDB_cPickle

Use basic cPickle class.

NumPyDB_pickle

Use basic Pickle class.

NumPyDB_shelve

Implement the database via shelving.

NumPyDB_text

Use plain ASCII string representation.


Table of Contents

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