Module Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias identifier Assign NameStore Num FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore NameLoad For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str Call AttributeLoad Str attr NameLoad Str Print NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str If BoolOpAnd CompareEq NameLoad NameLoad CompareEq NameLoad NameLoad body Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr NameLoad NameLoad keyword AttributeLoad NameLoad attr orelse Assert BoolOpAnd CompareEq NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num CompareEq NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Assign SubscriptStore NameLoad ExtSlice Index NameLoad Slice Slice Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore BinOpAdd BinOpDiv BinOpSub NameLoad Num NameLoad Num Assign NameStore BinOpAdd BinOpDiv BinOpSub NameLoad Num NameLoad Num Assign NameStore BinOpAdd BinOpDiv BinOpSub AttributeLoad NameLoad attr Num NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body For NameStore Call NameLoad NameLoad body Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore Call NameLoad BinOpMult BinOpAdd NameLoad Num NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpMod BinOpSub NameLoad Num NameLoad Num Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore Call NameLoad BinOpMult BinOpAdd NameLoad Num NameLoad NameLoad Assign NameStore BinOpAdd BinOpMod BinOpSub NameLoad Num NameLoad Num Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore Call NameLoad BinOpMult BinOpAdd NameLoad Num NameLoad NameLoad Assign NameStore BinOpAdd BinOpMod BinOpSub NameLoad Num NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Num NameLoad Slice Num NameLoad Slice Num NameLoad SubscriptLoad NameLoad ExtSlice Slice NameLoad NameLoad Slice NameLoad NameLoad Slice NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr NameLoad Str Print NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad BinOpMod Str TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num 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 cStringIO N/A urllib2 N/A sys N/A zlib N/A zindex N/A MySQLdb PIL Image N/A empaths N/A emcaproj N/A emcadb N/A dbconfig N/A imagecube N/A numpy np N/A RESOLUTION 0 main N/A N/A N/A N/A N/A parser N/A N/A argparse ArgumentParser description Ingest a tiff stack. N/A N/A N/A parser add_argument token action store N/A N/A N/A parser add_argument channel type int action store N/A N/A N/A parser add_argument path action store N/A N/A N/A parser add_argument numslices type int action store N/A result N/A N/A parser parse_args N/A projdb N/A N/A emcaproj EMCAProjectsDB N/A proj N/A N/A projdb getProj N/A result token N/A dbcfg N/A N/A dbconfig switchDataset N/A N/A proj getDataset N/A _ximgsz None N/A _yimgsz None N/A sl N/A range N/A result numslices N/A N/A filenm N/A N/A N/A N/A result path / N/A N/A {:0>4} format sl .png N/A filenm N/A img N/A N/A Image open filenm r N/A N/A N/A _ximgsz None N/A _yimgsz None N/A N/A N/A _ximgsz _yimgsz N/A img size N/A imarray N/A N/A np zeros N/A N/A result numslices _yimgsz _ximgsz dtype N/A np uint16 N/A N/A N/A N/A _ximgsz N/A N/A img size N/A 0 N/A _yimgsz N/A N/A img size N/A 1 N/A N/A imarray N/A N/A sl N/A N/A N/A N/A np asarray img N/A N/A xcubedim ycubedim zcubedim N/A N/A dbcfg cubedim N/A 0 N/A xlimit N/A N/A N/A _ximgsz 1 xcubedim 1 N/A ylimit N/A N/A N/A _yimgsz 1 ycubedim 1 N/A zlimit N/A N/A N/A N/A result numslices 1 zcubedim 1 N/A db N/A N/A emcadb EMCADB dbcfg proj N/A cursor N/A N/A N/A db conn cursor N/A z N/A range zlimit N/A N/A N/A N/A db commit N/A y N/A range ylimit N/A N/A x N/A range xlimit N/A N/A zmin N/A z zcubedim N/A zmax N/A min N/A N/A z 1 zcubedim N/A result numslices N/A zmaxrel N/A N/A N/A zmax 1 zcubedim 1 N/A ymin N/A y ycubedim N/A ymax N/A min N/A N/A y 1 ycubedim _yimgsz N/A ymaxrel N/A N/A N/A ymax 1 ycubedim 1 N/A xmin N/A x xcubedim N/A xmax N/A min N/A N/A x 1 xcubedim _ximgsz N/A xmaxrel N/A N/A N/A xmax 1 xcubedim 1 N/A key N/A N/A zindex XYZMorton N/A x y z N/A cube N/A N/A imagecube ImageCube16 N/A xcubedim ycubedim zcubedim N/A N/A N/A cube data N/A N/A 0 zmaxrel N/A 0 ymaxrel N/A 0 xmaxrel N/A imarray N/A N/A zmin zmax N/A ymin ymax N/A xmin xmax N/A npz N/A N/A cube toNPZ N/A sql N/A N/A INSERT INTO  N/A N/A proj getTable RESOLUTION (channel, zindex, cube) VALUES (%s, %s, %s) N/A sql N/A N/A N/A N/A N/A cursor execute sql N/A N/A result channel key npz N/A N/A N/A N/A MySQLdb Error N/A e N/A N/A N/A ANNError N/A Error updating data cube: %d: %s. sql=%s N/A N/A N/A e args N/A 0 N/A N/A e args N/A 1 sql 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