Module Import alias Import alias identifier ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num Assign ListStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Assign TupleStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad NameLoad NameLoad Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign ListStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore BinOpAdd NameLoad Num For NameStore Call NameLoad NameLoad BinOpAdd NameLoad Num NameLoad body Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body If BoolOpAnd CompareLtE BinOpAdd NameLoad NameLoad NameLoad CompareLtE BinOpAdd NameLoad NameLoad Num body Assign NameStore BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str Call AttributeLoad Str attr BinOpAdd NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore BinOpAdd SubscriptLoad NameLoad ExtSlice Slice Slice Index Num BinOpLShift Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Slice Index Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num keyword AttributeLoad NameLoad attr Print BinOpAdd NameLoad NameLoad Call AttributeLoad NameLoad attr For NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body For NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body Assign NameStore BinOpAdd BinOpAdd Call NameLoad NameLoad Str Call NameLoad SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad If CompareNotIn NameLoad NameLoad body Assign NameStore Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Expr Call AttributeLoad NameLoad attr Print Str Assign NameStore Str orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad Call NameLoad NameLoad Assign SubscriptStore NameLoad ExtSlice Index NameLoad Slice Slice NameLoad Print Str BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Print Str For NameStore Call NameLoad Num NameLoad NameLoad body For NameStore Call NameLoad Num NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr ListLoad BinOpDiv NameLoad NameLoad BinOpDiv NameLoad NameLoad BinOpDiv BinOpSub NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad BinOpAdd NameLoad NameLoad Assign NameStore Call NameLoad NameLoad BinOpAdd NameLoad NameLoad Assign NameStore Num Assign NameStore Call NameLoad BinOpAdd NameLoad NameLoad BinOpAdd NameLoad Num Assign SubscriptStore NameLoad ExtSlice Slice Num BinOpSub NameLoad NameLoad Slice Num BinOpSub NameLoad NameLoad Slice Num BinOpSub NameLoad NameLoad SubscriptLoad NameLoad ExtSlice Slice NameLoad NameLoad Slice NameLoad NameLoad Slice NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad BinOpSub NameLoad NameLoad NameLoad NameLoad Str Print BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A argparse N/A numpy np PIL Image N/A ocppaths N/A ocpcarest N/A zindex N/A anydbm N/A multiprocessing N/A pdb N/A This file is super-customized for Mitya's FlyEM data. N/A parser N/A N/A argparse ArgumentParser description Ingest the FlyEM image data. N/A N/A N/A parser add_argument baseurl action store help Base URL to of ocp service no http://, e.  g. openconnecto.me N/A N/A N/A parser add_argument token action store help Token for the annotation project. N/A N/A N/A parser add_argument path action store help Directory with annotation PNG files. N/A N/A N/A parser add_argument process action store help Number of processes. N/A result N/A N/A parser parse_args N/A resolution 0 N/A N/A db proj projdb N/A N/A ocpcarest loadDBProj N/A result token N/A N/A xcubedim ycubedim zcubedim N/A N/A N/A proj datasetcfg cubedim N/A resolution N/A N/A startslice endslice N/A N/A proj datasetcfg slicerange N/A batchsz zcubedim N/A ximagesz 12000 N/A yimagesz 12000 N/A batchsz 16 N/A totalslices N/A range startslice endslice 16 N/A totalprocs N/A int N/A result process parallelwrite N/A N/A slicenumber N/A N/A N/A N/A db proj projdb N/A N/A ocpcarest loadDBProj N/A result token N/A startslice slicenumber N/A endslice N/A startslice 16 N/A sl N/A range startslice N/A endslice 1 batchsz N/A N/A slab N/A N/A np zeros N/A batchsz yimagesz ximagesz dtype N/A np uint32 N/A b N/A range batchsz N/A N/A N/A N/A N/A sl b endslice N/A N/A sl b 1460 N/A N/A filenm N/A N/A N/A N/A result path /superpixel. N/A N/A {:0>5} format N/A sl b .png N/A img N/A N/A Image open filenm r N/A imgdata N/A N/A np asarray img N/A anydb N/A N/A anydbm open bodydict2 r N/A superpixelarray N/A N/A imgdata N/A N/A N/A N/A 0 N/A N/A N/A np uint32 N/A imgdata N/A N/A N/A N/A 1 8 N/A newdata N/A N/A np zeros N/A N/A N/A superpixelarray shape N/A 0 N/A N/A superpixelarray shape N/A 1 dtype N/A np uint32 N/A N/A sl b N/A N/A multiprocessing current_process N/A i N/A range N/A N/A superpixelarray shape N/A 0 N/A N/A j N/A range N/A N/A superpixelarray shape N/A 1 N/A N/A key N/A N/A N/A str sl , N/A str N/A superpixelarray N/A N/A i j N/A N/A key anydb N/A N/A f N/A open missing_keys a N/A N/A N/A f write N/A key N/A N/A N/A f close N/A Error Detected Writing to File N/A dictvalue 0 N/A N/A dictvalue N/A N/A anydb get key N/A N/A newdata N/A N/A i j N/A int dictvalue N/A N/A slab N/A N/A b N/A N/A newdata N/A end of slice: N/A sl b N/A N/A N/A anydb close N/A Entering commit phase N/A y N/A range 0 yimagesz ycubedim N/A N/A x N/A range 0 ximagesz xcubedim N/A N/A mortonidx N/A N/A zindex XYZMorton N/A N/A x xcubedim N/A y ycubedim N/A N/A sl startslice zcubedim N/A cubedata N/A N/A np zeros N/A zcubedim ycubedim xcubedim dtype N/A np uint32 N/A xmin x N/A ymin y N/A xmax N/A min ximagesz N/A x xcubedim N/A ymax N/A min yimagesz N/A y ycubedim N/A zmin 0 N/A zmax N/A min N/A sl zcubedim N/A endslice 1 N/A N/A cubedata N/A N/A 0 N/A zmax zmin N/A 0 N/A ymax ymin N/A 0 N/A xmax xmin N/A slab N/A N/A zmin zmax N/A ymin ymax N/A xmin xmax N/A N/A N/A db annotateDense N/A x y N/A sl startslice resolution cubedata O N/A N/A Commiting at x=%s, y=%s, z=%s N/A x y sl N/A N/A N/A N/A db conn commit N/A None N/A run N/A N/A N/A N/A N/A flypool N/A N/A multiprocessing Pool totalprocs N/A N/A N/A flypool map parallelwrite totalslices 16 N/A N/A N/A __name__ __main__ N/A N/A N/A run