hdtv.plugins.dblookup

Gamma database integration for HDTV

Attributes

database

Classes

Database

Module Contents

class hdtv.plugins.dblookup.Database
opt
database = None
FitPeakPostHook(fitclass)

Hook for hdtv.fit.Fit.FitPeakFunc function to automatically list matching database entries

SetAutoLookup(autolookup_opt)

Activate/Deactivate automatic lookup of peaks

Set(dbname=None, open=False)

Set database Callback

open: If true automatically opens and reads database

Info(args)

Print info about database(s)

assureOpen()

assure that the database has been opened

List(args)

List available databases

showDBfields(db=None)

Show fields of database db. If db is None show field of current database

Lookup(args, defaults=False)

Lookup entry in database

args.specs should be something like “<fieldname>=value” if <fieldname> is omitted it is assumed to be energy

hdtv.plugins.dblookup.database