Module Import alias Import alias Import alias Import alias identifier ImportFrom alias Import alias Import alias AugAssignAdd AttributeStore NameLoad attr ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Import alias Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str ImportFrom alias Import alias Import alias Import alias Import alias Import alias Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args defaults body 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 NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr 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 For NameStore Call NameLoad Num 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 CompareLtE BinOpAdd NameLoad NameLoad NameLoad body Assign NameStore BinOpAdd AttributeLoad NameLoad attr Call AttributeLoad Str attr BinOpSub BinOpAdd NameLoad NameLoad Num Print BinOpAdd Str NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpBitOr BinOpBitOr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Slice Index Num Num keyword AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Slice Index Num Num keyword AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Slice Index Num handlers ExceptHandler type NameLoad name NameStore body Print NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad ExtSlice Index NameLoad Slice Slice NameLoad Assign NameStore NameLoad 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 Call AttributeLoad NameLoad attr NameLoad 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 If CompareEq Call AttributeLoad NameLoad attr NameLoad Num body Continue Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Str attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Print BinOpMod Str TupleLoad NameLoad NameLoad BinOpAdd NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A argparse N/A sys N/A os N/A numpy np PIL Image N/A cStringIO N/A zlib N/A N/A sys path N/A N/A N/A N/A os path abspath ../../django N/A OCP.settings N/A N/A N/A os environ N/A DJANGO_SETTINGS_MODULE OCP.settings django.conf settings N/A ocpcarest N/A zindex N/A glob N/A kanno_cy N/A pdb N/A This file is super-customized for Rohanna Annotation datal.   This file has a bug as it starts ingesting data from 723 instead of 725.   For the correct script look at rhoana.py.
 N/A xoffsetsz 0 N/A yoffsetsz 0 N/A zoffsetsz 0 main N/A N/A N/A N/A N/A parser N/A N/A argparse ArgumentParser description Ingest the Rohanna data. 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 TIF files. N/A N/A N/A parser add_argument resolution action store type int help Resolution N/A result N/A N/A parser parse_args N/A resolution N/A result resolution 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 10748 N/A yimagesz 12896 N/A sl N/A range 993 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 sl b endslice N/A N/A filenm N/A N/A result path N/A N/A RCvesiclescleaned_s{:0>4}.png format N/A N/A sl b 1 N/A N/A Opening filenm  filenm N/A N/A N/A img N/A N/A Image open filenm r N/A imgdata N/A N/A np asarray img N/A imgdata N/A N/A N/A N/A np left_shift N/A imgdata N/A N/A N/A N/A 0 16 dtype N/A np uint32 N/A N/A np left_shift N/A imgdata N/A N/A N/A N/A 1 16 dtype N/A np uint32 N/A N/A np uint32 N/A imgdata N/A N/A N/A N/A 2 N/A N/A N/A IOError N/A e N/A N/A e N/A imgdata N/A N/A np zeros N/A yimagesz ximagesz dtype N/A np uint32 N/A N/A slab N/A N/A b N/A N/A imgdata N/A endz b 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 test N/A N/A zindex MortonXYZ mortonidx 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 N/A np count_nonzero cubedata 0 N/A N/A N/A fileobj N/A N/A cStringIO StringIO N/A N/A N/A np save fileobj cubedata N/A cdz N/A N/A zlib compress N/A N/A fileobj getvalue N/A cursor N/A N/A N/A db conn cursor N/A sql N/A N/A INSERT INTO res{} (zindex, cube) VALUES (%s, %s) format N/A int resolution N/A N/A N/A cursor execute sql N/A mortonidx cdz N/A N/A N/A cursor close N/A N/A Commiting at x=%s, y=%s, z=%s N/A x y N/A sl b N/A N/A N/A N/A db conn commit N/A N/A N/A __name__ __main__ N/A N/A N/A main