fact.slowdata package

FACT slow database frontent

provided for your convenience.

fact.slowdata.connect(host=None, port=None, db_name=None)[source]

Submodules

fact.slowdata.correlation module

library of functions for correlating services

class fact.slowdata.correlation.CorrelationByIdentification(service_1, service_2, delta_in_seconds)[source]

Bases: object

correlate()[source]

make parts of service_1 and service_2 of equal length and timestamps

class fact.slowdata.correlation.CorrelationByInterpolation(service_1, service_2, delta_in_seconds)[source]

Bases: object

correlate()[source]

correlate by interpolation

fact.slowdata.correlation.interpolator(support, times_to_be_evaluated)[source]
support : is a structured array with, ‘Time’
and a lot of other fields, to be interpolated.
times_to_be_evaluated : is a 1D array-like holding the times,
where the interpolation should be done

fact.slowdata.settings module

fact.slowdata.tools module

library of (hopefully) useful functions for the slow data DB interface

fact.slowdata.tools.cursor_to_rec_array(cursor)[source]

convert a pymongo.cursor.Cursor to an numpz recarray

fact.slowdata.tools.cursor_to_structured_array(cursor)[source]

convert a pymongo.cursor.Cursor to an numpy structured array

fact.slowdata.tools.make_numpy_dtype_from_cursor(cursor)[source]

infer datatype of structured array from document(s) from a cursor

fact.slowdata.tools.make_numpy_dtype_from_document(doc)[source]

infer datatype of structured array from document