autowisp.fit_expression.used_var_finder module

Class Inheritance Diagram

Inheritance diagram of UsedVarFinder

Define dict-like class tracking vars used when evaluating fit expressions.

class autowisp.fit_expression.used_var_finder.UsedVarFinder(default_symtable)[source]

Bases: object

Inheritance diagram of autowisp.fit_expression.used_var_finder.UsedVarFinder

Record the names of all keys not in default symtable ever requested.

__contains__(key)[source]

Is the given key in either the default symtable or data dtype.

__getitem__(key)[source]

1.0 if key is one of the data otherwise default symtable entry

__init__(default_symtable)[source]

Set the symtable before data is given and dtype to track usage of.

get_used_vars()[source]

Return the names of the variables used so far.