Efficient database for NumPy objects.
Methods
dump(a, identifier) | Dump NumPy array a with identifier. |
load(identifier[, bestapprox]) | Load NumPy array with identifier or find best approx. |
locate(identifier[, bestapprox]) | Find position in files where data corresponding to identifier are stored. |
Bases: scitools.NumPyDB.NumPyDB
Use basic cPickle class.
Methods
dump(a, identifier) | Dump NumPy array a with identifier. |
load(identifier[, bestapprox]) | Load NumPy array with a given identifier. In case the |
locate(identifier[, bestapprox]) | Find position in files where data corresponding to identifier are stored. |
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.
Find position in files where data corresponding to identifier are stored. bestapprox is a user-defined function for computing the distance between two identifiers.
Bases: scitools.NumPyDB.NumPyDB
Use basic Pickle class.
Methods
dump(a, identifier) | Dump NumPy array a with identifier. |
load(identifier[, bestapprox]) | Load NumPy array with a given identifier. In case the |
locate(identifier[, bestapprox]) | Find position in files where data corresponding to identifier are stored. |
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.
Find position in files where data corresponding to identifier are stored. bestapprox is a user-defined function for computing the distance between two identifiers.
Implement the database via shelving.
Methods
dump(a, identifier) | Dump NumPy array a with identifier. |
load(identifier[, bestapprox]) | Load NumPy array with a given identifier. In case the |
locate(identifier[, bestapprox]) | Return identifier key in shelf. |
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.
Bases: scitools.NumPyDB.NumPyDB
Use plain ASCII string representation.
Methods
dump(a, identifier) | Dump NumPy array a with identifier. |
load(identifier[, bestapprox]) | Load NumPy array with a given identifier. In case the |
locate(identifier[, bestapprox]) | Find position in files where data corresponding to identifier are stored. |
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.
Find position in files where data corresponding to identifier are stored. bestapprox is a user-defined function for computing the distance between two identifiers.