Module Import alias Import alias Import alias Import alias Import alias Import alias identifier ImportFrom alias Import alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Str Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Str Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return SubscriptLoad NameLoad ExtSlice Slice Slice Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr body Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad Num For NameStore NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad ExtSlice Index NameLoad Slice AttributeLoad NameLoad attr Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad Num NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore ListLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad If CompareIs NameLoad NameLoad body Assign NameStore TupleLoad Num Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore ListLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListComp Num comprehension NameStore Call NameLoad BinOpAdd NameLoad Num For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareLt SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Num body Return NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Import alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Assign NameStore ListLoad With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr While CompareNotEq NameLoad Str body Assign NameStore Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad NameLoad attr Num Assign NameStore Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num orelse Assign NameStore Num If NameLoad body Assign NameStore Str orelse Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad NameLoad attr Num If NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad NameLoad attr Num Assign NameStore Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad NameLoad attr Num Assign NameStore TupleLoad BinOpMult Num NameLoad BinOpMult Num NameLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad If NameLoad body Pass orelse Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListComp TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore NameLoad keyword NameLoad Assign NameStore Lambda arguments args NameParam defaults BinOpAdd SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num NameLoad Assign NameStore Lambda arguments args NameParam defaults TupleLoad BinOpMod NameLoad NameLoad Call NameLoad BinOpDiv NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp TupleLoad Call NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Call AttributeLoad NameLoad attr TupleLoad Call NameLoad NameLoad AttributeLoad NameLoad attr keyword TupleLoad BinOpAdd NameLoad Num BinOpAdd NameLoad Num Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad keyword NameLoad Assign NameStore ListComp ListLoad comprehension NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Call NameLoad NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareGtE Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad With Call NameLoad NameLoad NameStore body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num TupleLoad Num Num Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr ListComp Call NameLoad NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr BinOpDiv AttributeLoad NameLoad attr Num NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore ListLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Assign NameStore ListLoad With Call NameLoad NameLoad NameStore body For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num If CompareLt Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Num orelse Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num Return Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assert CompareEq Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr With Call NameLoad NameLoad Str NameStore body For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore ListLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Assign NameStore ListLoad With Call NameLoad NameLoad NameStore body For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str If Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num body Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num TupleLoad Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body With Call NameLoad NameLoad Str NameStore body For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num Num NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpDiv BinOpMult Num SubscriptLoad NameLoad Slice Num Num SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd BinOpAdd Num BinOpMult AttributeLoad NameLoad attr NameLoad BinOpMult BinOpMult AttributeLoad NameLoad attr NameLoad NameLoad Return BinOpMult BinOpMult AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr ListLoad ListLoad Num ListLoad Num ListLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr UnaryOpUSub AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Return Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr ListLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Num Num SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Num Num SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Num Num Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Num Num SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Num Num SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Num Num Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Num Num SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Num Num SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Num Num Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num keyword AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr ListComp Call AttributeLoad Str attr NameLoad comprehension NameStore AttributeLoad NameLoad attr Return Call AttributeLoad Str attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore ListComp Call NameLoad comprehension NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad ListComp Call NameLoad AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad Num Num Assign NameStore Num For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign SubscriptStore NameLoad ExtSlice Index NameLoad Slice Slice AttributeLoad NameLoad attr AugAssignAdd NameStore Num Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad Num Assign NameStore Num For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign SubscriptStore NameLoad ExtSlice Index NameLoad Slice Call AttributeLoad NameLoad attr AugAssignAdd NameStore Num Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If BoolOpAnd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If BoolOpAnd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpDiv BinOpMult Num Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore BinOpDiv Num NameLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpDiv BinOpAdd Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr BinOpAdd BinOpMult Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num For NameStore AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Assign NameStore BinOpSub NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignAdd NameStore Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num If CompareNotEq NameLoad Str body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad keyword NameLoad For NameStore Call NameLoad NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler body Raise Call NameLoad Call AttributeLoad Str attr NameLoad For NameStore Call NameLoad NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num TupleLoad Num Num Assign NameStore ListLoad For NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index TupleLoad NameLoad Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index TupleLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Index TupleLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Index TupleLoad NameLoad Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad decorator_list decorator_list
N/A N/A tempfile N/A sys N/A os N/A subprocess N/A shutil N/A numpy np PIL Image N/A scipy.sparse hornsmethod robust_horn read_sift_key N/A N/A fname N/A N/A N/A 
    Read a SIFT .key file produced by David Lowe's SIFT feature detector. This function ignores
    the SIFT descriptors and returns only the feature locations.

    Given:
        fname: a filename to read
    Returns:
        keys: n_keys-by-2 numpy array of SIFT key locations.

    Notes:
    Sift keys are in the following coordinate system: (x,y) in [0:width-1, 0:height-1].
     N/A tmpdir N/A N/A tempfile mkdtemp N/A N/A N/A fname endswith .gz N/A N/A fname_orig fname N/A fname N/A N/A N/A os path join tmpdir N/A N/A N/A N/A N/A os path basename fname_orig replace .key.gz .key N/A cmd N/A N/A N/A gunzip -c  fname_orig  >  fname N/A N/A N/A subprocess call cmd shell True N/A fname_stripped N/A N/A N/A os path join tmpdir N/A N/A N/A N/A N/A os path basename fname replace .key .stripped.key N/A cmd N/A N/A N/A awk 'NR % 8 == 2'  fname  >  fname_stripped N/A N/A N/A subprocess call cmd shell True N/A data N/A N/A np loadtxt fname_stripped N/A N/A N/A shutil rmtree tmpdir N/A N/A data N/A N/A N/A 0 2 N/A read_cc_file N/A N/A fname N/A N/A N/A ccs N/A N/A N/A open fname f N/A N/A N/A N/A f readline N/A N/A i cc N/A enumerate N/A N/A f readlines N/A N/A cc N/A N/A int x N/A x N/A N/A cc split N/A N/A N/A ccs append N/A cc N/A 1 N/A ccs N/A read_image_sizes N/A N/A listdata image_path subset N/A None None N/A N/A n N/A len N/A listdata images N/A img_sizes N/A N/A np zeros N/A n 2 N/A i subset N/A N/A img_name N/A N/A listdata images N/A i N/A image_path N/A N/A img_name N/A N/A N/A os path join image_path img_name N/A N/A N/A N/A os path exists img_name N/A N/A im N/A N/A Image open img_name N/A N/A img_sizes N/A N/A i N/A N/A im size N/A img_sizes N/A CoordsEntry N/A object N/A __init__ N/A N/A self name dims fl keys rgb N/A None 0.0 None None N/A N/A N/A keys None N/A N/A keys N/A N/A N/A rgb None N/A N/A rgb N/A N/A N/A dims None N/A N/A dims N/A 0.0 0.0 N/A N/A self name name N/A N/A self dims dims N/A N/A self fl fl N/A N/A self keys keys N/A N/A self rgb rgb N/A N/A Coords N/A object N/A __init__ N/A N/A self indices data N/A None None N/A N/A N/A indices None N/A N/A indices N/A N/A N/A data None N/A N/A data N/A N/A N/A self indices indices N/A N/A self data data N/A N/A self reverse_index N/A N/A N/A N/A self update_lookup N/A update_lookup N/A N/A self N/A N/A N/A n N/A max N/A self indices N/A N/A self reverse_index N/A -1 N/A i N/A xrange N/A n 1 N/A N/A i x N/A enumerate N/A self indices N/A N/A N/A N/A self reverse_index N/A x i N/A __getitem__ N/A N/A self key N/A N/A N/A N/A N/A N/A self reverse_index N/A key 0 N/A N/A None N/A N/A N/A self data N/A N/A N/A self reverse_index N/A key N/A from_file N/A N/A cls fname skip_names skip_colors skip_dims N/A False False False N/A N/A re N/A re_d ([-+]?\d+) N/A re_f ([-+]?(\d+(\.\d*))+) N/A re_s ([^\s,]*) N/A indices N/A N/A data N/A N/A N/A open fname f N/A N/A line N/A N/A f readline N/A N/A line N/A N/A index N/A int N/A N/A N/A N/A re search N/A index =  re_d line group 1 N/A num_keys N/A int N/A N/A N/A N/A re search N/A keys =  re_d line group 1 N/A focal_search N/A N/A re search N/A focal =  re_f line N/A focal_search N/A N/A fl N/A float N/A N/A focal_search group 1 N/A N/A fl 0.0 N/A skip_names N/A N/A image_name N/A N/A image_name N/A N/A N/A N/A re search N/A name =  re_s line group 1 N/A skip_dims N/A N/A dims None N/A N/A px N/A float N/A N/A N/A N/A re search N/A px =  re_f line group 1 N/A py N/A float N/A N/A N/A N/A re search N/A py =  re_f line group 1 N/A dims N/A N/A 2 px N/A 2 py N/A keys N/A N/A rgb N/A N/A i N/A xrange num_keys N/A N/A tokens N/A N/A N/A N/A f readline split N/A feature_index N/A int N/A tokens N/A 0 N/A x N/A float N/A tokens N/A 1 N/A y N/A float N/A tokens N/A 2 N/A N/A N/A keys append N/A x y N/A skip_colors N/A N/A N/A N/A r N/A int N/A tokens N/A 5 N/A g N/A int N/A tokens N/A 6 N/A b N/A int N/A tokens N/A 7 N/A N/A N/A rgb append N/A r g b N/A N/A N/A indices append index N/A N/A N/A data append N/A CoordsEntry image_name dims fl keys rgb N/A line N/A N/A f readline N/A N/A cls indices data N/A classmethod N/A Tracks N/A object N/A __init__ N/A N/A self tracks N/A None N/A N/A N/A tracks None N/A N/A tracks N/A N/A N/A self tracks tracks N/A num_tracks N/A N/A self N/A N/A N/A N/A len N/A self tracks N/A __getitem__ N/A N/A self i N/A N/A N/A N/A N/A self tracks N/A i N/A __setitem__ N/A N/A self i track N/A N/A N/A N/A N/A self tracks N/A i track N/A from_models N/A N/A cls models min_track_length max_track_length N/A 2 None N/A N/A 
        return a Tracks object describing the tracks in
        a given list of models.
         N/A N/A max_track_length None N/A N/A max_track_length N/A sys maxint N/A max_image_num N/A N/A np max N/A N/A np array N/A N/A N/A m i N/A m j N/A m models axis None N/A hash N/A N/A N/A x N/A N/A N/A x N/A 0 N/A N/A x N/A 1 max_image_num N/A unhash N/A N/A N/A x N/A N/A N/A x max_image_num N/A int N/A x max_image_num N/A edges N/A N/A np array N/A N/A N/A hash N/A N/A m i N/A pt fid_i N/A hash N/A N/A m j N/A pt fid_j N/A pt N/A m points N/A m models N/A max_hash N/A N/A np max edges axis None N/A graph N/A N/A N/A scipy sparse csr_matrix N/A N/A N/A np ones N/A N/A len edges N/A edges T shape N/A N/A max_hash 1 N/A max_hash 1 N/A N/A N_components labels N/A N/A N/A N/A scipy sparse csgraph connected_components graph directed False N/A tracks N/A N/A N/A i N/A xrange N_components N/A N/A i l N/A enumerate labels N/A N/A N/A N/A N/A tracks N/A l append N/A unhash i N/A tracks N/A t N/A t tracks N/A N/A len t min_track_length N/A N/A cls tracks N/A classmethod from_file N/A N/A cls fname N/A N/A N/A tracks N/A N/A N/A open fname f N/A N/A num_tracks N/A int N/A N/A f readline N/A i N/A xrange num_tracks N/A N/A data N/A N/A np fromstring N/A N/A f readline sep dtype int N/A N/A N/A tracks append N/A N/A np reshape N/A data N/A 1 N/A -1 2 N/A N/A cls tracks N/A classmethod write N/A N/A self fname N/A N/A N/A N/A open fname w f N/A N/A N/A N/A f write N/A N/A {}
 format N/A N/A self num_tracks N/A track N/A self tracks N/A N/A data N/A N/A track flatten N/A data_str N/A N/A join N/A N/A str x N/A x data N/A N/A N/A f write N/A N/A {} {}
 format N/A N/A data size 2 data_str N/A N/A Listfile N/A object N/A __init__ N/A N/A self images focal_lengths N/A None None N/A N/A N/A images None N/A N/A images N/A N/A N/A focal_lengths None N/A N/A focal_lengths N/A N/A N/A self images images N/A N/A self focal_lengths focal_lengths N/A from_file N/A N/A cls fname N/A N/A N/A images N/A N/A focal_lengths N/A N/A N/A open fname f N/A N/A line f N/A N/A tokens N/A N/A line split N/A N/A N/A images append N/A tokens N/A 0 N/A N/A N/A len tokens 3 N/A N/A N/A N/A focal_lengths append 0 N/A N/A N/A N/A focal_lengths append N/A float N/A tokens N/A 2 N/A N/A cls images focal_lengths N/A classmethod write N/A N/A self fname N/A N/A N/A N/A N/A len N/A self images N/A len N/A self focal_lengths N/A N/A open fname w f N/A N/A N/A image fl N/A zip N/A self images N/A self focal_lengths N/A N/A N/A fl 0 N/A N/A N/A N/A f write N/A N/A {}
 format image N/A N/A N/A N/A f write N/A N/A {} 0 {}
 format image fl N/A N/A Rotfile N/A object N/A __init__ N/A N/A self rotations indices N/A None None N/A N/A N/A rotations None N/A N/A rotations N/A N/A N/A indices None N/A N/A indices N/A N/A N/A self rotations rotations N/A N/A self indices indices N/A from_file N/A N/A cls fname N/A N/A N/A rotations N/A N/A indices N/A N/A N/A open fname f N/A N/A line f N/A N/A data N/A N/A np fromstring line sep N/A N/A N/A np any N/A data N/A 1 N/A N/A N/A N/A indices append N/A int N/A data N/A 0 N/A R N/A N/A np reshape N/A data N/A 1 N/A 3 3 N/A N/A N/A rotations append N/A R T N/A N/A cls rotations indices N/A classmethod write N/A N/A self fname N/A N/A N/A N/A open fname w f N/A N/A N/A index R N/A zip N/A self indices N/A self rotations N/A N/A N/A N/A f write N/A N/A {} {}
 format index N/A N/A join N/A N/A str x N/A x N/A N/A R flatten N/A N/A Camera N/A object N/A N/A 
    Represents a bundler image. f is the pixel focal length, k1 and k2 are
    first and second order radial distortion coeffs, R is camera rotation, and
    t is camera translation. For more information, see:
    http://www.cs.cornell.edu/~snavely/bundler/bundler-v0.3-manual.html#S6
     __init__ N/A N/A self f k1 k2 R t N/A 0 0 0 None None N/A N/A N/A R None N/A N/A R N/A N/A np zeros N/A 3 3 N/A N/A t None N/A N/A t N/A N/A np array N/A 0 0 0 N/A N/A self f f N/A N/A self k1 k1 N/A N/A self k2 k2 N/A N/A self R R N/A N/A self t t N/A project N/A N/A self X N/A N/A N/A 
        Project ndarray 3-vector X into this camera. Return ndarray
        2-vector x. See the bundler manual for details.
        http://www.cs.cornell.edu/~snavely/bundler/bundler-v0.3-manual.html

        TODO: vectorize this?
         N/A P N/A N/A N/A np dot N/A self R X N/A self t N/A p N/A N/A -1 N/A P N/A 0 2 N/A P N/A 2 N/A norm_p2 N/A N/A np sum N/A N/A np square p N/A r N/A N/A 1 N/A N/A self k1 norm_p2 N/A N/A N/A self k2 norm_p2 norm_p2 N/A N/A N/A N/A self f r p N/A viewing_direction N/A N/A self N/A N/A N/A N/A N/A np dot N/A N/A N/A self R transpose N/A N/A np array N/A N/A 0 N/A 0 N/A -1 N/A set_X N/A N/A self X N/A N/A N/A N/A self t N/A N/A np dot N/A self R N/A -1 X N/A location N/A N/A self N/A N/A N/A N/A N/A np dot N/A N/A N/A self R transpose N/A N/A self t N/A initialized N/A N/A self N/A N/A N/A N/A N/A np any N/A self R N/A P_matrix N/A N/A self N/A N/A N/A 
        return P = K * [R | t]
         N/A K N/A N/A np diag N/A N/A self f N/A self f 1 N/A N/A N/A np dot K N/A N/A np hstack N/A N/A self R N/A N/A self t N/A N/A N/A N/A np newaxis N/A __str__ N/A N/A self N/A N/A N/A N/A N/A join N/A N/A N/A {} {} {}
 format N/A self f N/A self k1 N/A self k2 N/A N/A {} {} {}
 format N/A N/A self R N/A N/A 0 0 N/A N/A self R N/A N/A 0 1 N/A N/A self R N/A N/A 0 2 N/A N/A {} {} {}
 format N/A N/A self R N/A N/A 1 0 N/A N/A self R N/A N/A 1 1 N/A N/A self R N/A N/A 1 2 N/A N/A {} {} {}
 format N/A N/A self R N/A N/A 2 0 N/A N/A self R N/A N/A 2 1 N/A N/A self R N/A N/A 2 2 N/A N/A {} {} {} format N/A N/A self t N/A 0 N/A N/A self t N/A 1 N/A N/A self t N/A 2 N/A N/A Point N/A object N/A N/A 
    Represents a 3D point. X is a coordinate in R3, color is an RGB triple, and observations
    is a list of tuples (camera, feature_id, x_pxl, y_pxl)
     __init__ N/A N/A self X color observations N/A None None None N/A N/A N/A X None N/A N/A X N/A N/A np array N/A 0 0 0 N/A N/A color None N/A N/A color N/A N/A np array N/A 255 255 255 dtype N/A np uint8 N/A N/A observations None N/A N/A observations N/A N/A N/A self X X N/A N/A self color color N/A N/A self observations observations N/A __str__ N/A N/A self N/A N/A N/A myStr N/A N/A N/A N/A myStr append N/A N/A join N/A N/A str x N/A x N/A self X N/A N/A N/A myStr append N/A N/A N/A myStr append N/A N/A join N/A N/A str x N/A x N/A self color N/A N/A N/A myStr append N/A N/A N/A myStr append N/A N/A {}  format N/A len N/A self observations N/A N/A N/A myStr append N/A N/A join N/A N/A N/A {0:d} {1:d} {2:6.5f} {3:6.5f}  format obs N/A obs N/A self observations N/A N/A N/A join myStr N/A N/A BundleException N/A Exception N/A __init__ N/A N/A self value N/A N/A N/A N/A self value value N/A __str__ N/A N/A self N/A N/A N/A N/A repr N/A self value N/A N/A Bundle N/A object N/A N/A 
    Represents the cameras and points in a structure from motion reconstruction.
     __init__ N/A N/A self cameras points num_cameras N/A None None 0 N/A N/A 
        Make a blank bundle, possibly with given lists of cameras and points.
        If specified, reserve space for nCams uninitialized cameras
         N/A N/A cameras None N/A N/A cameras N/A N/A Camera N/A i N/A xrange num_cameras N/A N/A points None N/A N/A points N/A N/A N/A self cameras cameras N/A N/A self points points N/A num_points N/A N/A self N/A N/A N/A Get the number of points in this bundle N/A N/A len N/A self points N/A num_cameras N/A N/A self N/A N/A N/A Get the number of cameras in this bundle, whether they are initialized or not N/A N/A len N/A self cameras N/A num_active_cameras N/A N/A self N/A N/A N/A Get the number of cameras which are initialized N/A N/A len N/A x N/A x N/A self cameras N/A N/A x initialized N/A num_observations N/A N/A self N/A N/A N/A Get the number of camera-point observations in this bundle N/A N/A sum N/A N/A len N/A x observations N/A x N/A self points N/A all_rots N/A N/A self N/A N/A N/A 
        Get (ind, R) the indices and rotation matrices of all initialized cameras.
        Returns:
            ind: length n numpy int array of camera indices
            R: n-by-3-by-3 numpy array of camera rotation matrices
         N/A n N/A N/A self num_active_cameras N/A ind N/A N/A np zeros n N/A R N/A N/A np zeros N/A n 3 3 N/A ptr 0 N/A N/A i cam N/A enumerate N/A self cameras N/A N/A N/A N/A cam initialized N/A N/A N/A ind N/A ptr i N/A N/A R N/A N/A ptr N/A N/A N/A cam R N/A ptr 1 N/A N/A ind R N/A all_positions N/A N/A self N/A N/A N/A 
        Get (ind, X) the indices and locations of all initialized cameras.
        Returns:
            ind: length n numpy int array of camera indices
            X: n-by-3 numpy array of camera locations (world xyz coords)
         N/A n N/A N/A self num_active_cameras N/A ind N/A N/A np zeros n N/A X N/A N/A np zeros N/A n 3 N/A ptr 0 N/A N/A i cam N/A enumerate N/A self cameras N/A N/A N/A N/A cam initialized N/A N/A N/A ind N/A ptr i N/A N/A X N/A N/A ptr N/A N/A N/A cam location N/A ptr 1 N/A N/A ind X N/A compare_to N/A N/A self other_bundle N/A N/A N/A 
        Return a vector of the distances between corresponding cameras in two
        bundles.
         N/A residuals N/A N/A N/A camA camB N/A zip N/A self cameras N/A other_bundle cameras N/A N/A N/A N/A N/A camA initialized N/A N/A camB initialized N/A N/A XA N/A N/A camA location N/A XB N/A N/A camB location N/A N/A N/A residuals append N/A N/A np sqrt N/A N/A np sum N/A N/A np square N/A XB XA N/A N/A N/A np array residuals N/A align_to N/A N/A self other_bundle ransac_rounds ransac_threshold N/A 4096 10.0 N/A N/A 
        Robustly compute and then apply a similarity transformation that attempts
        to align corresponding cameras in two bundles.
         N/A XA N/A N/A XB N/A N/A N/A camA camB N/A zip N/A self cameras N/A other_bundle cameras N/A N/A N/A N/A N/A camA initialized N/A N/A camB initialized N/A N/A N/A N/A XA append N/A N/A N/A N/A camA location flatten N/A N/A N/A XB append N/A N/A N/A N/A camB location flatten N/A XA N/A N/A np array XA N/A XB N/A N/A np array XB N/A N/A R t s inlier_err N/A robust_horn XB XA ransac_rounds ransac_threshold N/A N/A N/A self transform R t s N/A N/A R t s N/A transform N/A N/A self R t s N/A None None 1 N/A N/A 
        Apply a change of coordinates to a bundle file.
        T(x) = s * R * x + t
         N/A N/A R None N/A N/A R N/A N/A np identity 3 N/A N/A t None N/A N/A t N/A N/A np array N/A 0 0 0 N/A R_inv N/A R T N/A t_inv N/A N/A -1 N/A N/A np dot R_inv t s N/A s_inv N/A 1 s N/A cam N/A self cameras N/A N/A R_new N/A N/A np dot N/A cam R R_inv N/A t_new N/A N/A N/A N/A N/A N/A np dot N/A cam R t_inv flatten N/A cam t s_inv N/A N/A cam R R_new N/A N/A cam t t_new N/A pt N/A self points N/A N/A N/A pt X N/A N/A N/A N/A np dot R N/A pt X s t N/A N/A pt X N/A N/A N/A pt X flatten N/A reprojection_error N/A N/A self N/A N/A N/A error 0.0 N/A point N/A self points N/A N/A obs N/A point observations N/A N/A cam N/A N/A self cameras N/A N/A obs N/A 0 N/A pixel N/A N/A np array N/A obs N/A 2 N/A res N/A pixel N/A N/A cam project N/A point X N/A error N/A N/A np sum N/A res res N/A error N/A from_file N/A N/A cls fname N/A N/A N/A 
        Read in a Bundle file.
         N/A N/A open fname f N/A N/A line N/A N/A f readline N/A bundle_version N/A N/A N/A line split N/A -1 N/A N/A bundle_version v0.3 N/A N/A N/A BundleException N/A N/A Bundle version {} not supported. format bundle_version N/A tokens N/A N/A N/A N/A f readline split N/A nCams N/A int N/A tokens N/A 0 N/A nPts N/A int N/A tokens N/A 1 N/A my_bundle N/A cls num_cameras nCams N/A i N/A xrange nCams N/A N/A N/A N/A data N/A N/A np fromstring N/A N/A f readline sep N/A fl N/A data N/A 0 N/A k1 N/A data N/A 1 N/A k2 N/A data N/A 2 N/A R0 N/A N/A np fromstring N/A N/A f readline sep N/A R1 N/A N/A np fromstring N/A N/A f readline sep N/A R2 N/A N/A np fromstring N/A N/A f readline sep N/A R N/A N/A np vstack N/A R0 R1 R2 N/A t N/A N/A np fromstring N/A N/A f readline sep N/A N/A N/A my_bundle cameras N/A i N/A Camera fl k1 k2 R t N/A N/A N/A N/A N/A BundleException N/A N/A Bundle file format error in camera {} block format i N/A i N/A xrange nPts N/A N/A N/A N/A X N/A N/A np fromstring N/A N/A f readline sep N/A color N/A N/A np fromstring N/A N/A f readline sep dtype N/A np uint8 N/A data N/A N/A np fromstring N/A N/A f readline sep N/A data N/A N/A np reshape N/A data N/A 1 N/A -1 4 N/A observations N/A N/A i N/A xrange N/A N/A data shape N/A 0 N/A N/A img_num N/A int N/A data N/A N/A i 0 N/A feature_num N/A int N/A data N/A N/A i 1 N/A x_pxl N/A data N/A N/A i 2 N/A y_pxl N/A data N/A N/A i 3 N/A N/A N/A observations append N/A img_num feature_num x_pxl y_pxl N/A N/A N/A N/A my_bundle points append N/A Point X color observations N/A N/A N/A N/A N/A BundleException N/A N/A Bundle file format error in point {} block format i N/A my_bundle N/A classmethod write N/A N/A self fname N/A N/A N/A 
        Write this bundle to a given file in Bundler v0.3 format.
         N/A N/A open fname w f N/A N/A N/A N/A f write # Bundle file v0.3
 N/A N/A N/A f write N/A N/A {} {} format N/A N/A self num_cameras N/A N/A self num_points N/A camera N/A self cameras N/A N/A N/A N/A f write N/A N/A str camera N/A point N/A self points N/A N/A N/A N/A f write N/A N/A str point N/A N/A