Module Import alias identifier Import alias Import alias Import alias ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr keyword Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore SubscriptStore NameLoad Index Str SubscriptStore NameLoad Index Str TupleLoad Num Num Assign TupleStore SubscriptStore NameLoad Index Str SubscriptStore NameLoad Index Str TupleLoad Num Num Assign TupleStore NameStore NameStore TupleLoad BinOpAdd NameLoad NameLoad BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Num Num TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr TupleLoad Num Num TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore SubscriptStore NameLoad Index Str SubscriptStore NameLoad Index Str TupleLoad Num Num Assign TupleStore SubscriptStore NameLoad Index Str SubscriptStore NameLoad Index Str TupleLoad Num Num Assign TupleStore NameStore NameStore TupleLoad BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Num Num TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr TupleLoad Num Num TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Num TupleLoad Str Num Assign NameStore Num Assign TupleStore NameStore NameStore TupleLoad BinOpMult NameLoad NameLoad BinOpMult NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Num Num TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr TupleLoad Num Num TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Str Num TupleLoad Str Num Assign NameStore Num Assign NameStore BinOpDiv NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Num Num TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str FunctionDef arguments args defaults kwarg body Assign NameStore BinOpMult ListLoad Num Call NameLoad AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Num NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Num TryExcept body Expr Call NameLoad NameLoad Num handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Num decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Str Str Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore TupleLoad TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num For TupleStore NameStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str TryExcept body Expr BinOpAdd NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Expr BinOpAdd NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore TupleLoad TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num For TupleStore NameStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad BinOpSub NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad BinOpSub NameLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr UnaryOpUSub NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str TryExcept body Expr BinOpSub NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpSub NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Expr BinOpSub NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Num Expr Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad BinOpMult NameLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad BinOpMult NameLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMult NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMult NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMult NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad BinOpMult NameLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad BinOpMult NameLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMult NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str TryExcept body Expr BinOpMult NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Num Assign NameStore BinOpDiv Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad BinOpDiv NameLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr BinOpMod Str NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad BinOpDiv NameLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr BinOpMod Str NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpDiv NameLoad NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpDiv Num Num Expr Call AttributeLoad NameLoad attr BinOpDiv NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad BinOpDiv Num NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpDiv NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpDiv Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad BinOpDiv NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr BinOpDiv Num NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad BinOpDiv NameLoad NameLoad attr BinOpDiv AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr BinOpDiv AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpDiv NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad BinOpPow NameLoad Num attr BinOpPow Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad BinOpPow NameLoad Num attr BinOpPow AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpPow NameLoad BinOpDiv Num Num NameLoad Expr Call AttributeLoad NameLoad attr BinOpDiv NameLoad NameLoad NameLoad TryExcept body Expr BinOpPow NameLoad Num handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str TryExcept body Expr BinOpPow NameLoad Num handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str TryExcept body Expr BinOpPow NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str TryExcept body Expr BinOpPow Num NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call NameLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad Call NameLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call NameLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad Call NameLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad UnaryOpUAdd NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad UnaryOpUAdd NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad UnaryOpUSub NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad UnaryOpUSub NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad BinOpMult NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr BinOpDiv Num Num Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Num Str Assign NameStore Call AttributeLoad NameLoad attr Num Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Num Str Assign NameStore Call AttributeLoad NameLoad attr Num Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Num Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore TupleLoad TupleLoad Str Str NameLoad TupleLoad Str Str NameLoad TupleLoad Str Str NameLoad For TupleStore NameStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr BinOpDiv Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr BinOpMod Str Call NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Num TryExcept body Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list Assign NameStore TupleLoad TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str Num Num Num Call NameLoad keyword Num keyword Num Num Expr Call AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str Num Num Num Call NameLoad keyword Num keyword Num Num TryExcept body Expr BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpDiv AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpDiv AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Dict Str Str Num Num Num Call NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Dict Str Str Num Num Num Call NameLoad keyword Num keyword Num Num Assign NameStore BinOpDiv AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Dict Str Str Num Num Num Call NameLoad keyword Num Num Assign NameStore BinOpDiv Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Dict Str Str Num Num Num Call NameLoad keyword Num Num TryExcept body Expr BinOpDiv AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list Assign NameStore TupleLoad TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpPow NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore BinOpPow NameLoad BinOpDiv Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr TryExcept body Expr BinOpPow NameLoad Num handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str TryExcept body Expr BinOpPow NameLoad Num handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str TryExcept body Expr BinOpPow NameLoad BinOpDiv Num Num handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list Assign NameStore TupleLoad TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpDiv Num Num TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list Assign NameStore TupleLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr TupleLoad BinOpDiv Num Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Num Num TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpDiv Num NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore BinOpDiv BinOpDiv Num NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore BinOpPow NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore BinOpDiv NameLoad BinOpPow NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr Str Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr Str Str Num Num handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A openmdao.units units N/A unittest N/A math N/A cStringIO pkg_resources resource_string resource_stream test_moduleLevelFunctions N/A N/A unittest TestCase N/A tearDown N/A N/A self N/A N/A N/A unitLib N/A resource_stream N/A units __name__ unitLibdefault.ini N/A N/A N/A units import_library unitLib N/A test_importlib N/A N/A self N/A N/A N/A unitLib_test_bad N/A resource_stream N/A units __name__ test/unitLib_test_badbaseunits.ini N/A N/A N/A N/A N/A units import_library unitLib_test_bad N/A N/A N/A ValueError N/A err N/A N/A N/A N/A self assertEqual N/A str err Not all required base type were present in the config file. missing: ['mass', 'time'], at least ['length', 'mass', 'time', 'temperature', 'angle'] required N/A N/A N/A N/A self fail ValueError expected N/A unitLib_test_bad N/A resource_stream N/A units __name__ test/unitLib_test_badunit.ini N/A N/A N/A N/A N/A units import_library unitLib_test_bad N/A N/A N/A ValueError N/A err N/A N/A N/A N/A self assertEqual N/A str err The following units were not defined because they could not be resolved as a function of any other defined units:['foo'] N/A N/A N/A N/A self fail ValueError expected N/A test_update_library N/A N/A self N/A N/A N/A x N/A N/A units PhysicalQuantity 1m/s N/A N/A N/A N/A N/A x convert_to_unit furlong/fortnight N/A N/A N/A ValueError N/A exc N/A N/A N/A N/A self assertEqual N/A str exc no unit named 'furlong' is defined N/A N/A N/A N/A self fail ValueError expected N/A update N/A N/A cStringIO StringIO 
[units]
furlong: 201.168*m, Horse racing
fortnight: 14*d, Two weeks
 N/A N/A N/A units update_library update N/A x N/A N/A units PhysicalQuantity 1m/s N/A N/A N/A x convert_to_unit furlong/fortnight N/A N/A N/A self assertAlmostEqual N/A x value N/A N/A N/A units PhysicalQuantity 6012.884753furlong/fortnight value places 5 N/A N/A test_NumberDict N/A N/A unittest TestCase N/A test__UknownKeyGives0 N/A N/A self N/A N/A N/A x N/A N/A units NumberDict N/A N/A N/A self assertEqual N/A x N/A 0 0 N/A N/A N/A self assertEqual N/A x N/A t 0 N/A test__add__KnownValues N/A N/A self N/A N/A N/A x N/A N/A units NumberDict N/A y N/A N/A units NumberDict N/A N/A N/A x N/A t1 N/A x N/A t2 N/A 1 2 N/A N/A N/A y N/A t1 N/A y N/A t2 N/A 2 1 N/A N/A result1 result2 N/A N/A x y N/A y x N/A N/A N/A self assertEqual N/A 3 3 N/A N/A result1 N/A t1 N/A result1 N/A t2 N/A N/A N/A self assertEqual N/A 3 3 N/A N/A result2 N/A t1 N/A result2 N/A t2 N/A test__sub__KnownValues N/A N/A self N/A N/A N/A x N/A N/A units NumberDict N/A y N/A N/A units NumberDict N/A N/A N/A x N/A t1 N/A x N/A t2 N/A 1 2 N/A N/A N/A y N/A t1 N/A y N/A t2 N/A 2 1 N/A N/A result1 result2 N/A N/A x y N/A y x N/A N/A N/A self assertEqual N/A -1 1 N/A N/A result1 N/A t1 N/A result1 N/A t2 N/A N/A N/A self assertEqual N/A 1 -1 N/A N/A result2 N/A t1 N/A result2 N/A t2 N/A test__mul__KnownValues N/A N/A self N/A N/A N/A x N/A N/A units NumberDict N/A N/A t1 1 N/A t2 2 N/A y 10 N/A N/A result1 result2 N/A N/A x y N/A y x N/A N/A N/A self assertEqual N/A 10 20 N/A N/A result1 N/A t1 N/A result1 N/A t2 N/A N/A N/A self assertEqual N/A 10 20 N/A N/A result2 N/A t1 N/A result2 N/A t2 N/A test__div__KnownValues N/A N/A self N/A N/A N/A x N/A N/A units NumberDict N/A x N/A N/A units NumberDict N/A N/A t1 1 N/A t2 2 N/A y 10.0 N/A result1 N/A x y N/A N/A N/A self assertEqual N/A 0.1 0.2 N/A N/A result1 N/A t1 N/A result1 N/A t2 N/A N/A N/A _unitLib N/A N/A units import_library N/A resource_stream N/A units __name__ unitLibdefault.ini _get_powers N/A N/A N/A powdict N/A N/A powers N/A N/A 0 N/A len N/A _unitLib base_types N/A N/A name power N/A N/A powdict items N/A N/A N/A powers N/A N/A N/A _unitLib base_types N/A name power N/A powers N/A test__PhysicalQuantity N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A unitLib N/A resource_stream N/A units __name__ unitLibdefault.ini N/A N/A self unitlib N/A N/A units import_library unitLib N/A test_init N/A N/A self N/A N/A N/A x N/A N/A units PhysicalQuantity 1m N/A y N/A N/A units PhysicalQuantity 1 m N/A N/A N/A self assertEqual N/A x value N/A y value N/A N/A N/A self assertEqual N/A x unit N/A y unit N/A z N/A N/A units PhysicalQuantity 1dam N/A N/A N/A x N/A N/A units PhysicalQuantity m N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err No number found in input argument: 'm' N/A N/A N/A N/A self fail Expecting TypeError N/A N/A N/A x N/A N/A units PhysicalQuantity 1in N/A N/A N/A ValueError N/A err N/A N/A N/A N/A self assertEqual N/A str err no unit named 'in' is defined N/A N/A N/A N/A self fail Expecting ValueError N/A N/A N/A x N/A N/A units PhysicalQuantity 1 None N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err None is not a unit N/A N/A N/A N/A self fail Expecting TypeError N/A test_str N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A str N/A N/A units PhysicalQuantity 1 d 1.0 d N/A test_repr N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A repr N/A N/A units PhysicalQuantity 1 d PhysicalQuantity(1.0,'d') N/A test_cmp N/A N/A self N/A N/A N/A x N/A N/A units PhysicalQuantity 1 d N/A y N/A N/A units PhysicalQuantity 2 d N/A N/A N/A self assertEqual N/A cmp x y -1 N/A N/A N/A self assertEqual N/A cmp y x 1 N/A N/A N/A self assertEqual N/A cmp x x 0 N/A N/A N/A N/A cmp x 2 N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual Incompatible types N/A str err N/A N/A N/A N/A self fail Expecting TypeError N/A test_integers_in_unit_string N/A N/A self N/A N/A N/A x N/A N/A units PhysicalQuantity 1 1/min N/A N/A N/A self assertAlmostEqual N/A N/A x unit factor 0.0166666 places 5 N/A N/A N/A self assertEqual N/A N/A x unit names N/A 1 min 1 -1 N/A N/A N/A self assertEqual N/A N/A x unit powers N/A _get_powers time -1 N/A test_currency_unit N/A N/A self N/A N/A N/A N/A N/A x N/A N/A units PhysicalQuantity 1USD N/A N/A N/A ValueError N/A N/A N/A N/A self fail Error: Currency Unit (USD) is not working N/A test_pi N/A N/A self N/A N/A N/A x N/A N/A units PhysicalQuantity 1rpm N/A N/A N/A x convert_to_unit rad/min N/A N/A N/A self assertAlmostEqual N/A x value N/A N/A N/A units PhysicalQuantity 6.283185rad/min value places 3 N/A test_new_units N/A N/A self N/A N/A N/A x N/A N/A units PhysicalQuantity 7200s N/A N/A N/A x convert_to_unit h N/A N/A N/A self assertEqual x N/A N/A units PhysicalQuantity 2h N/A x N/A N/A units PhysicalQuantity 5knot N/A N/A N/A x convert_to_unit nm/h N/A N/A N/A self assertEqual x N/A N/A units PhysicalQuantity 5nmi/h N/A x N/A N/A units PhysicalQuantity 33rev/min N/A N/A N/A x convert_to_unit rpm N/A N/A N/A self assertEqual x N/A N/A units PhysicalQuantity 33rpm N/A x N/A N/A units PhysicalQuantity 12mo N/A N/A N/A x convert_to_unit yr N/A N/A N/A self assertEqual x N/A N/A units PhysicalQuantity 1yr N/A x N/A N/A units PhysicalQuantity 1Mibyte N/A N/A N/A x convert_to_unit Kibyte N/A N/A N/A self assertEqual x N/A N/A units PhysicalQuantity 1024Kibyte N/A test_prefix_plus_math N/A N/A self N/A N/A N/A x1 N/A N/A units convert_units 1.0 m**2 cm**2 N/A N/A N/A self assertEqual x1 10000.0 N/A x N/A N/A units PhysicalQuantity 7200nm**3/kPa*dL N/A x N/A N/A units PhysicalQuantity 1 g/kW N/A test_add_known_Values N/A N/A self N/A N/A N/A known_add_values N/A N/A 1m 5m 6 N/A 1cm 1cm 2 N/A 1cm 1ft 31.48 N/A N/A q1 q2 result known_add_values N/A N/A x N/A N/A units PhysicalQuantity q1 N/A y N/A N/A units PhysicalQuantity q2 N/A sum N/A x y N/A N/A N/A self assertEqual N/A sum value result N/A N/A N/A self assertEqual N/A sum unit N/A x unit N/A q1 N/A N/A units PhysicalQuantity 1cm N/A q2 N/A N/A units PhysicalQuantity 1kg N/A N/A N/A N/A q1 q2 N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err Incompatible units N/A N/A N/A N/A self fail expecting TypeError N/A q1 N/A N/A units PhysicalQuantity 1degK N/A q2 N/A N/A units PhysicalQuantity 1degR N/A q3 N/A N/A units PhysicalQuantity 1degC N/A result N/A q1 q2 N/A N/A N/A self assertAlmostEqual N/A result value 1.556 3 N/A N/A N/A self assertEqual N/A result unit N/A q1 unit N/A N/A N/A N/A q3 q2 N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err Unit conversion (degR to degC) cannot be expressed as a simple multiplicative factor N/A N/A N/A N/A self fail expecting TypeError N/A test_sub_known_Values N/A N/A self N/A N/A N/A known_sub_Values N/A N/A 1m 5m -4 N/A 1cm 1cm 0 N/A 1cm 5m -499.0 N/A 7km 1m 6.999 N/A N/A q1 q2 sum known_sub_Values N/A N/A x N/A N/A units PhysicalQuantity q1 N/A y N/A N/A units PhysicalQuantity q2 N/A N/A N/A self assertEqual N/A N/A x y value sum N/A N/A N/A self assertEqual N/A N/A x y unit N/A x unit N/A N/A N/A self assertEqual N/A N/A N/A x __rsub__ y value N/A sum N/A N/A N/A self assertEqual N/A N/A N/A x __rsub__ y unit N/A x unit N/A q1 N/A N/A units PhysicalQuantity 1cm N/A q2 N/A N/A units PhysicalQuantity 1kg N/A N/A N/A N/A q1 q2 N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err Incompatible units N/A N/A N/A N/A self fail expecting TypeError N/A q1 N/A N/A units PhysicalQuantity 1degK N/A q2 N/A N/A units PhysicalQuantity 1degR N/A q3 N/A N/A units PhysicalQuantity 1degC N/A result N/A q1 q2 N/A N/A N/A self assertAlmostEqual N/A result value 0.444 3 N/A N/A N/A self assertEqual N/A result unit N/A q1 unit N/A N/A N/A N/A q3 q2 N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err Unit conversion (degR to degC) cannot be expressed as a simple multiplicative factor N/A N/A N/A N/A self fail expecting TypeError N/A test_mul_known_Values N/A N/A self N/A N/A N/A x N/A N/A units PhysicalQuantity 1cm N/A y 12.3 N/A N/A N/A self assertEqual N/A x y N/A N/A units PhysicalQuantity 12.3cm N/A N/A N/A self assertEqual N/A y x N/A N/A units PhysicalQuantity 12.3cm N/A x N/A N/A units PhysicalQuantity 1cm N/A y N/A N/A units PhysicalQuantity 1cm N/A z N/A N/A units PhysicalQuantity 1cm**-1 N/A N/A N/A self assertEqual N/A N/A x y value 1 N/A N/A N/A self assertEqual N/A N/A x y unit N/A N/A x unit N/A y unit N/A N/A N/A self assertEqual N/A str N/A x y 1.0 cm**2 N/A N/A N/A self assertEqual N/A x z 1.0 N/A N/A N/A self assertEqual N/A type N/A x z float N/A N/A N/A self assertEqual N/A str N/A x z 1.0 N/A x N/A N/A units PhysicalQuantity 7kg N/A y N/A N/A units PhysicalQuantity 10.5m N/A N/A N/A self assertEqual N/A N/A x y value 73.5 N/A N/A N/A self assertEqual N/A N/A x y unit N/A N/A x unit N/A y unit N/A N/A N/A self assertEqual N/A str N/A x y 73.5 m*kg N/A z N/A N/A units PhysicalQuantity 1degC N/A N/A N/A N/A x z N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err cannot multiply units with non-zero offset N/A N/A N/A N/A self fail TypeError expected N/A test_div_known_Values N/A N/A self N/A N/A N/A x N/A N/A units PhysicalQuantity 1cm N/A y 12.3 N/A z N/A 1 12.3 N/A N/A N/A self assertAlmostEqual N/A N/A x y value N/A N/A N/A units PhysicalQuantity N/A %f cm z value 4 N/A N/A N/A self assertEqual N/A N/A x y unit N/A N/A N/A units PhysicalQuantity N/A %f cm z unit N/A N/A N/A self assertEqual N/A y x N/A N/A units PhysicalQuantity 12.3cm**-1 N/A x N/A N/A units PhysicalQuantity 1.0m N/A y N/A N/A units PhysicalQuantity 5m N/A quo N/A 1.0 5 N/A N/A N/A self assertEqual N/A x y quo N/A N/A N/A self assertEqual N/A N/A x __rdiv__ y N/A 1 quo N/A N/A N/A self assertEqual N/A type N/A x y float N/A x N/A N/A units PhysicalQuantity 3cm N/A y N/A N/A units PhysicalQuantity 5s N/A quo N/A 3.0 5 N/A N/A N/A self assertEqual N/A N/A x y value quo N/A N/A N/A self assertEqual N/A N/A N/A x __rdiv__ y value N/A 1 quo N/A N/A N/A self assertEqual N/A N/A x y unit N/A N/A x unit N/A y unit N/A N/A N/A self assertEqual N/A N/A N/A x __rdiv__ y unit N/A N/A y unit N/A x unit N/A N/A N/A self assertEqual N/A str N/A x y 0.6 cm/s N/A test_pow_known_Values N/A N/A self N/A N/A N/A x N/A N/A units PhysicalQuantity 5V N/A N/A N/A self assertEqual N/A N/A x 2 value N/A 5 2 N/A N/A N/A self assertEqual N/A N/A x 2 unit N/A N/A x unit 2 N/A x N/A N/A units PhysicalQuantity 1m**2 N/A y N/A N/A units PhysicalQuantity 1m N/A N/A N/A self assertEqual N/A x N/A 1.0 2.0 y N/A N/A N/A self assertEqual N/A x y y N/A N/A N/A N/A x 2.5 N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err Only integer and inverse integer exponents allowed N/A N/A N/A N/A self fail Expecting TypeError N/A x N/A N/A units PhysicalQuantity 1degC N/A N/A N/A N/A x 2 N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err cannot exponentiate units with non-zero offset N/A N/A N/A N/A self fail expected TypeError N/A N/A N/A N/A x x N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err Exponents must be dimensionless N/A N/A N/A N/A self fail expected TypeError N/A N/A N/A N/A 2 x N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err Exponents must be dimensionless N/A N/A N/A N/A self fail expected TypeError N/A test_abs_known_Values N/A N/A self N/A N/A N/A x N/A N/A units PhysicalQuantity -5V N/A N/A N/A self assertEqual N/A N/A abs x unit N/A x unit N/A N/A N/A self assertEqual N/A N/A abs x value 5 N/A x N/A N/A units PhysicalQuantity 5V N/A N/A N/A self assertEqual N/A N/A abs x unit N/A x unit N/A N/A N/A self assertEqual N/A N/A abs x value 5 N/A test_pos_known_Values N/A N/A self N/A N/A N/A x N/A N/A units PhysicalQuantity 5V N/A N/A N/A self assertEqual N/A N/A x value 5 N/A x N/A N/A units PhysicalQuantity -9.8m N/A N/A N/A self assertEqual N/A N/A x value -9.8 N/A test_neg_known_Values N/A N/A self N/A N/A N/A x N/A N/A units PhysicalQuantity 5V N/A N/A N/A self assertEqual N/A N/A x value -5 N/A x N/A N/A units PhysicalQuantity -9.8m N/A N/A N/A self assertEqual N/A N/A x value 9.8 N/A test_sqrt_known_Values N/A N/A self N/A N/A N/A x N/A N/A units PhysicalQuantity 5V N/A N/A N/A self assertEqual N/A N/A N/A x x sqrt x N/A test_sin_cos_tan_known_Values N/A N/A self N/A N/A N/A x N/A N/A units PhysicalQuantity 0 rad N/A N/A N/A x sin N/A N/A N/A self assertEqual N/A N/A x sin N/A N/A math sin N/A x value N/A N/A N/A self assertEqual N/A N/A x cos N/A N/A math cos N/A x value N/A N/A N/A self assertEqual N/A N/A x tan N/A N/A math tan N/A x value N/A x N/A N/A units PhysicalQuantity 1m N/A N/A N/A N/A N/A x sin N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err Argument of sin must be an angle N/A N/A N/A N/A self fail TypeError expected N/A N/A N/A N/A N/A x cos N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err Argument of cos must be an angle N/A N/A N/A N/A self fail TypeError expected N/A N/A N/A N/A N/A x tan N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err Argument of tan must be an angle N/A N/A N/A N/A self fail TypeError expected N/A test_nonzero N/A N/A self N/A N/A N/A x N/A N/A units PhysicalQuantity 1degK N/A N/A N/A self assertTrue x N/A test_convert_to_unit N/A N/A self N/A N/A N/A x N/A N/A units PhysicalQuantity 5cm N/A N/A N/A x convert_to_unit m N/A N/A N/A self assertEqual x N/A N/A units PhysicalQuantity 0.05m N/A x N/A N/A units PhysicalQuantity 5cm N/A N/A N/A N/A N/A x convert_to_unit kg N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err Incompatible units N/A N/A N/A N/A self fail TypeError expected N/A x N/A N/A units PhysicalQuantity 1.0psi N/A N/A N/A x convert_to_unit psf N/A N/A N/A self assertEqual x N/A N/A units PhysicalQuantity 144.0psf N/A test_in_units_of N/A N/A self N/A N/A N/A x N/A N/A units PhysicalQuantity 5cm N/A y N/A N/A x in_units_of m N/A N/A N/A self assertEqual y N/A N/A units PhysicalQuantity 0.05m N/A N/A N/A self assertEqual x N/A N/A units PhysicalQuantity 5cm N/A x N/A N/A units PhysicalQuantity 5cm N/A N/A N/A y N/A N/A x in_units_of degC N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err Incompatible units N/A N/A N/A N/A self fail TypeError expected N/A test_in_base_units N/A N/A self N/A N/A N/A x N/A N/A units PhysicalQuantity 1 1/h N/A y N/A N/A x in_base_units N/A N/A N/A self assertEqual y N/A N/A units PhysicalQuantity N/A 1 3600.0 1/s N/A N/A N/A self assertEqual x N/A N/A units PhysicalQuantity 1 1/h N/A x N/A N/A units PhysicalQuantity 1 ft**-3 N/A y N/A N/A x in_base_units N/A N/A N/A self assertEqual y N/A N/A units PhysicalQuantity 35.3146667215 1/m**3 N/A x N/A N/A units PhysicalQuantity 1 ft**3 N/A y N/A N/A x in_base_units N/A N/A N/A self assertEqual y N/A N/A units PhysicalQuantity 0.028316846592 m**3 N/A x N/A N/A units PhysicalQuantity 5cm N/A y N/A N/A x in_base_units N/A N/A N/A self assertEqual y N/A N/A units PhysicalQuantity 0.05m N/A N/A N/A self assertEqual x N/A N/A units PhysicalQuantity 5cm N/A test__is_compatible__known__Values N/A N/A self N/A N/A N/A testvals N/A N/A 5m cm True N/A 1s ms True N/A 1m ms False N/A N/A q1 q2 bool testvals N/A N/A x N/A N/A units PhysicalQuantity q1 N/A N/A N/A self assertEqual N/A N/A x is_compatible q2 bool N/A test_integers_in_unit_definition N/A N/A self N/A N/A N/A x N/A N/A units PhysicalQuantity 10 1/min N/A N/A N/A self assertEqual N/A N/A x unit factor N/A 1 60.0 N/A N/A N/A self assertEqual N/A N/A x unit powers N/A _get_powers time -1 N/A N/A test__PhysicalUnit N/A N/A unittest TestCase N/A test_repr_str N/A N/A self N/A N/A N/A u N/A N/A units PhysicalQuantity 1 d N/A N/A N/A self assertEqual N/A repr N/A u unit N/A PhysicalUnit({'d': 1},86400.0,%s,0.0) N/A _get_powers time 1 N/A N/A N/A self assertEqual N/A str N/A u unit <PhysicalUnit d> N/A test_cmp N/A N/A self N/A N/A N/A x N/A N/A units PhysicalQuantity 1 d N/A y N/A N/A units PhysicalQuantity 1 s N/A z N/A N/A units PhysicalQuantity 1 ft N/A N/A N/A self assertEqual N/A cmp x y 1 N/A N/A N/A self assertEqual N/A cmp x x 0 N/A N/A N/A self assertEqual N/A cmp y x -1 N/A N/A N/A N/A cmp x z N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err Incompatible units N/A N/A N/A N/A self fail Expecting TypeError N/A N/A known__mul__Values N/A N/A 1m 5m 5 N/A 1cm 1cm 1 N/A 1cm 5m 5 N/A 7km 1m 7 test_multiply N/A N/A self N/A N/A N/A x N/A N/A units PhysicalQuantity 1g N/A y N/A N/A units PhysicalQuantity 2s N/A z N/A N/A units PhysicalQuantity 1 degC N/A N/A N/A self assertEqual N/A N/A x unit N/A y unit N/A N/A units PhysicalUnit N/A s kg 1 1 0.001 N/A _get_powers mass 1 time 1 0 N/A N/A N/A self assertEqual N/A N/A y unit N/A x unit N/A N/A units PhysicalUnit N/A s kg 1 1 0.001 N/A _get_powers mass 1 time 1 0 N/A N/A N/A N/A N/A x unit N/A z unit N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err cannot multiply units with non-zero offset N/A N/A N/A N/A self fail Expecting TypeError N/A test_division N/A N/A self N/A N/A N/A w N/A N/A units PhysicalQuantity 2kg N/A x N/A N/A units PhysicalQuantity 1g N/A y N/A N/A units PhysicalQuantity 2s N/A z N/A N/A units PhysicalQuantity 1 degC N/A quo N/A N/A w unit N/A x unit N/A quo2 N/A N/A x unit N/A y unit N/A N/A N/A self assertEqual quo N/A N/A units PhysicalUnit N/A kg g 1 -1 1000.0 N/A _get_powers 0 N/A N/A N/A self assertEqual quo2 N/A N/A units PhysicalUnit N/A s g -1 1 0.001 N/A _get_powers mass 1 time -1 0 N/A quo N/A N/A y unit 2.0 N/A N/A N/A self assertEqual quo N/A N/A units PhysicalUnit N/A s 2.0 1 -1 0.5 N/A _get_powers time 1 0 N/A quo N/A 2.0 N/A y unit N/A N/A N/A self assertEqual quo N/A N/A units PhysicalUnit N/A s 2.0 -1 1 2 N/A _get_powers time -1 0 N/A N/A N/A N/A N/A x unit N/A z unit N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err cannot divide units with non-zero offset N/A N/A N/A N/A self fail Expecting TypeError N/A N/A known__pow__Values N/A N/A 1V 3 N/A 1m 2 N/A 1.1m 2 test_pow N/A N/A self N/A N/A N/A x N/A N/A units PhysicalQuantity 1m N/A y N/A N/A units PhysicalQuantity 1degF N/A z N/A x 3 N/A N/A N/A self assertEqual N/A z unit N/A N/A N/A units PhysicalQuantity 1m**3 unit N/A x N/A z N/A 1.0 3.0 N/A N/A N/A self assertEqual N/A x unit N/A N/A N/A units PhysicalQuantity 1m unit N/A N/A N/A N/A y 17 N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err cannot exponentiate units with non-zero offset N/A N/A N/A N/A self fail Expecting TypeError N/A N/A N/A N/A x 1.2 N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err Only integer and inverse integer exponents allowed N/A N/A N/A N/A self fail Expecting TypeError N/A N/A N/A N/A x N/A 5.0 2.0 N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err Only integer and inverse integer exponents allowed N/A N/A N/A N/A self fail Expecting TypeError N/A N/A known__conversion_factor_to__Values N/A N/A 1m 1cm 100 N/A 1s 1ms 1000 N/A 1ms 1s 0.001 test_conversion_factor_to N/A N/A self N/A N/A N/A w N/A N/A units PhysicalQuantity 1cm N/A x N/A N/A units PhysicalQuantity 1m N/A y N/A N/A units PhysicalQuantity 1degF N/A z1 N/A N/A units PhysicalQuantity 1degC N/A z2 N/A N/A units PhysicalQuantity 1degK N/A N/A N/A self assertEqual N/A N/A N/A w unit conversion_factor_to N/A x unit N/A 1 100.0 N/A N/A N/A N/A N/A N/A w unit conversion_factor_to N/A y unit N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err Incompatible units N/A N/A N/A N/A self fail Expecting TypeError N/A N/A N/A self assertEqual N/A N/A N/A z1 unit conversion_factor_to N/A z2 unit 1.0 N/A N/A N/A N/A N/A N/A y unit conversion_factor_to N/A z2 unit N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err Unit conversion (degF to degK) cannot be expressed as a simple multiplicative factor N/A N/A N/A N/A self fail Expecting TypeError N/A N/A known__conversion_tuple_to__Values N/A N/A 1m 1s N/A 1s 1degK N/A 1ms 1rad test_conversion_tuple_to N/A N/A self N/A N/A N/A w N/A N/A units PhysicalQuantity 1cm N/A x N/A N/A units PhysicalQuantity 1m N/A y N/A N/A units PhysicalQuantity 1degF N/A z1 N/A N/A units PhysicalQuantity 1degC N/A z2 N/A N/A units PhysicalQuantity 1degK N/A N/A N/A self assertEqual N/A N/A N/A w unit conversion_tuple_to N/A x unit N/A N/A 1 100.0 0 N/A result N/A N/A N/A y unit conversion_tuple_to N/A z1 unit N/A N/A N/A self assertAlmostEqual N/A result N/A 0 0.556 3 N/A N/A N/A self assertAlmostEqual N/A result N/A 1 -32.0 3 N/A N/A N/A N/A N/A N/A x unit conversion_tuple_to N/A z1 unit N/A N/A N/A TypeError N/A err N/A N/A N/A N/A self assertEqual N/A str err Incompatible units N/A N/A N/A N/A self fail Expecting TypeError N/A test_name N/A N/A self N/A N/A N/A x1 N/A N/A units PhysicalQuantity 1m N/A x2 N/A N/A units PhysicalQuantity 1kg N/A y N/A 1 x1 N/A N/A N/A self assertEqual N/A N/A N/A y unit name 1/m N/A y N/A N/A 1 x1 x1 N/A N/A N/A self assertEqual N/A N/A N/A y unit name 1/m**2 N/A y N/A x1 2 N/A N/A N/A self assertEqual N/A N/A N/A y unit name m**2 N/A y N/A x2 N/A x1 2 N/A N/A N/A self assertEqual N/A N/A N/A y unit name kg/m**2 N/A N/A test__moduleFunctions N/A N/A unittest TestCase N/A test_add_unit N/A N/A self N/A N/A N/A N/A N/A N/A N/A units add_unit ft 20*m N/A N/A N/A KeyError N/A err N/A N/A N/A N/A self assertEqual N/A str err 'Unit ft already defined with different factor or powers' N/A N/A N/A N/A self fail Expecting Key Error N/A N/A N/A N/A N/A units add_offset_unit degR degK 20 10 N/A N/A N/A KeyError N/A err N/A N/A N/A N/A self assertEqual N/A str err 'Unit degR already defined with different factor or powers' N/A N/A N/A N/A self fail Expecting Key Error N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main