Module Import alias Import alias Import alias ImportFrom alias Import alias identifier ImportFrom alias Import alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Import alias Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str ImportFrom alias Import alias Expr Call AttributeLoad NameLoad attr ImportFrom alias Import alias Import alias Import alias Import alias FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr With Call NameLoad Call AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr With Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign ListStore ListStore NameStore NameStore NameStore TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign ListStore NameStore NameStore NameStore NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad NameLoad attr Assign ListStore NameStore NameStore NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index AttributeLoad NameLoad attr 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 CompareLtE BinOpAdd NameLoad NameLoad NameLoad body TryExcept body Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad Print Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Str attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad ExtSlice Index NameLoad Slice Slice BinOpBitOr 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 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 For NameStore Call NameLoad Num BinOpAdd NameLoad Num NameLoad body For NameStore Call NameLoad Num BinOpAdd NameLoad Num 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 NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call 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 AttributeLoad NameLoad attr 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 NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A argparse N/A sys N/A os contextlib closing N/A numpy np PIL Image N/A cStringIO N/A zlib N/A N/A N/A N/A sys path append 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 django N/A N/A N/A django setup cube Cube N/A ocpcarest N/A ocpcadb N/A ocpcaproj N/A ocplib main N/A N/A N/A N/A N/A parser N/A N/A argparse ArgumentParser description Ingest the TIFF data N/A N/A N/A parser add_argument token action store type str help Token for the project N/A N/A N/A parser add_argument channel action store type str help Channel for the project N/A N/A N/A parser add_argument path action store type str help Directory with the image files N/A N/A N/A parser add_argument resolution action store type int help Resolution of data N/A result N/A N/A parser parse_args N/A N/A closing N/A N/A ocpcaproj OCPCAProjectsDB projdb N/A N/A proj N/A N/A projdb loadToken N/A result token N/A N/A closing N/A N/A ocpcadb OCPCADB proj db N/A N/A ch N/A N/A proj getChannelObj N/A result channel N/A N/A N/A ximagesz yimagesz zimagesz N/A starttime endtime N/A N/A N/A proj datasetcfg imageSize N/A result resolution N/A N/A xcubedim ycubedim zcubedim cubedim N/A N/A N/A N/A proj datasetcfg getCubeDims N/A N/A result resolution N/A N/A xoffset yoffset zoffset N/A N/A N/A N/A proj datasetcfg getOffset N/A N/A result resolution N/A slice_number N/A range zoffset N/A zimagesz 1 zcubedim N/A N/A slab N/A N/A np zeros N/A zcubedim yimagesz ximagesz dtype N/A np uint32 N/A b N/A range zcubedim N/A N/A N/A N/A slice_number b zimagesz N/A N/A N/A N/A file_name N/A N/A {}BrainBowExM_{:0>4}.tif format N/A result path N/A slice_number b N/A N/A N/A Open filename {} format file_name N/A img N/A N/A N/A N/A Image open file_name r convert RGBA N/A imgdata N/A N/A np asarray img N/A N/A slab N/A N/A b N/A N/A N/A N/A N/A N/A N/A np left_shift N/A imgdata N/A N/A N/A N/A 3 24 dtype N/A np uint32 N/A N/A np left_shift N/A imgdata N/A N/A N/A N/A 2 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 8 dtype N/A np uint32 N/A N/A np uint32 N/A imgdata N/A N/A N/A N/A 0 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 y N/A range 0 N/A yimagesz 1 ycubedim N/A N/A x N/A range 0 N/A ximagesz 1 xcubedim N/A N/A zidx N/A N/A ocplib XYZMorton N/A N/A x xcubedim N/A y ycubedim N/A N/A slice_number zoffset zcubedim N/A cube N/A N/A Cube getCube cubedim N/A N/A ch getChannelType N/A N/A ch getDataType N/A N/A N/A cube zeros 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 slice_number zcubedim N/A zimagesz 1 N/A N/A N/A cube data 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 putCube ch zidx N/A result resolution cube update True N/A N/A N/A __name__ __main__ N/A N/A N/A main