Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Import alias ImportFrom alias Import alias identifier 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 ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad With Call NameLoad Call AttributeLoad NameLoad attr AttributeStore NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad With Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeStore NameLoad attr body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str With Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeStore NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str For NameStore Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num SubscriptLoad NameLoad Index NameLoad For NameStore Call NameLoad AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr For NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareLt BinOpAdd NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad TryExcept body Print BinOpAdd Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign SubscriptStore NameLoad ExtSlice Index BinOpMod BinOpSub BinOpAdd NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Slice Num SubscriptLoad AttributeLoad NameLoad attr Index Num Slice Num SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad handlers ExceptHandler type NameLoad name NameStore body Print NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str With Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeStore NameLoad attr body For NameStore Call NameLoad Num BinOpAdd AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr body For NameStore Call NameLoad Num BinOpAdd AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr ListLoad BinOpDiv NameLoad AttributeLoad NameLoad attr BinOpDiv NameLoad AttributeLoad NameLoad attr BinOpDiv BinOpSub NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr BinOpAdd NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr BinOpAdd NameLoad AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Call NameLoad BinOpAdd NameLoad AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr 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 Print AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Print Call AttributeLoad Str attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list decorator_list 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 NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A argparse N/A cStringIO N/A urllib2 N/A sys N/A zlib N/A os N/A re PIL Image N/A cv2 contextlib closing N/A numpy np 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 ocplib N/A imagecube N/A ocpcadb N/A ocpcaproj RajuIngest N/A N/A __init__ N/A N/A self token path resolution channel N/A N/A N/A N/A self token token N/A N/A self path path N/A N/A self resolution resolution N/A N/A closing N/A N/A ocpcaproj OCPCAProjectsDB N/A self projdb N/A N/A N/A self proj N/A N/A N/A self projdb loadProject token N/A N/A closing N/A N/A ocpcadb OCPCADB N/A self proj N/A self db N/A N/A N/A N/A self xcubedim N/A self ycubedim N/A self zcubedim N/A self cubedims N/A N/A N/A N/A self proj datasetcfg cubedim N/A resolution N/A N/A N/A self startslice N/A self endslice N/A N/A N/A self proj datasetcfg slicerange N/A N/A self batchsz N/A self zcubedim N/A N/A self channel channel N/A N/A N/A self _ximgsz N/A self _yimgsz N/A N/A N/A N/A self proj datasetcfg imagesz N/A resolution N/A label N/A N/A self chanid chanstr N/A N/A N/A  Write the channel label/string associated with the channel identifier N/A N/A closing N/A N/A ocpcadb OCPCADB N/A self proj N/A self db N/A N/A N/A N/A N/A self db putChannel chanstr chanid N/A ingest N/A N/A self N/A N/A N/A NAME N/A Grayscale N/A x N/A range N/A self channel N/A N/A N/A N/A self label N/A x 1 N/A NAME N/A x N/A sl N/A range N/A self startslice N/A N/A self endslice 1 N/A self batchsz N/A N/A imarray N/A N/A np zeros N/A N/A self batchsz N/A self _yimgsz N/A self _ximgsz dtype N/A np uint16 N/A b N/A range N/A self batchsz N/A N/A N/A N/A sl b N/A self endslice N/A N/A filenm N/A N/A {}allenAtlasPadded{:0>4}.tif format N/A self path N/A sl b N/A N/A N/A N/A Opening filename:  filenm N/A imgdata N/A N/A cv2 imread filenm -1 N/A N/A imarray N/A N/A N/A N/A N/A sl b N/A self startslice N/A self batchsz N/A 0 N/A N/A imgdata shape N/A 0 N/A 0 N/A N/A imgdata shape N/A 1 imgdata N/A N/A N/A IOError N/A e N/A N/A e N/A N/A N/A self upload N/A x 1 sl imarray N/A upload N/A N/A self channel sl imarray N/A N/A N/A Transfer the array to the database N/A N/A closing N/A N/A ocpcadb OCPCADB N/A self proj N/A self db N/A N/A y N/A range 0 N/A N/A self _yimgsz 1 N/A self ycubedim N/A N/A x N/A range 0 N/A N/A self _ximgsz 1 N/A self xcubedim N/A N/A key N/A N/A ocplib XYZMorton N/A N/A x N/A self xcubedim N/A y N/A self ycubedim N/A N/A sl N/A self startslice N/A self zcubedim N/A cube N/A N/A imagecube ImageCube16 N/A self cubedims N/A xmin x N/A ymin y N/A xmax N/A min N/A self _ximgsz N/A x N/A self xcubedim N/A ymax N/A min N/A self _yimgsz N/A y N/A self ycubedim N/A zmin 0 N/A zmax N/A min N/A sl N/A self zcubedim N/A N/A self endslice 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 imarray N/A N/A zmin zmax N/A ymin ymax N/A xmin xmax N/A N/A N/A cube data shape N/A N/A N/A N/A self db putChannelCube key channel N/A self resolution cube N/A N/A N/A  Commiting at x={}, y={}, z={} format x y sl N/A N/A N/A N/A N/A self db conn commit N/A N/A main N/A N/A N/A N/A N/A parser N/A N/A argparse ArgumentParser description Ingest a multi-channel tiff stack. N/A N/A N/A parser add_argument token action store help Token for the project N/A N/A N/A parser add_argument resolution type int action store help Resolution of data N/A N/A N/A parser add_argument channel type int action store help Number of Channels N/A N/A N/A parser add_argument path action store help Directory for the image files N/A result N/A N/A parser parse_args N/A raj N/A RajuIngest N/A result token N/A result path N/A result resolution N/A result channel N/A N/A N/A raj ingest N/A N/A N/A __name__ __main__ N/A N/A N/A main