Module Import alias Import alias identifier Import alias alias Import alias Import 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 Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareNotEq NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad orelse If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr ListLoad BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad keyword AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Assign NameStore BinOpMult Call AttributeLoad NameLoad attr ListLoad BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad keyword AttributeLoad NameLoad attr Num orelse If AttributeLoad NameLoad attr body Assign NameStore BinOpMult Call AttributeLoad NameLoad attr ListLoad BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad keyword AttributeLoad NameLoad attr Num orelse Assign NameStore Call AttributeLoad NameLoad attr ListLoad BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A argparse N/A numpy np N/A urllib urllib2 N/A cStringIO N/A sys N/A re N/A tempfile N/A h5py N/A zlib main N/A N/A N/A N/A N/A parser N/A N/A argparse ArgumentParser description Write a region of the database. N/A N/A N/A parser add_argument baseurl action store N/A N/A N/A parser add_argument token action store N/A N/A N/A parser add_argument cutout action store help Cutout arguments of the form resolution/x1,x2/y1,y2/z1,z2. N/A N/A N/A parser add_argument --probmap action store_true N/A N/A N/A parser add_argument --mask action store_true N/A N/A N/A parser add_argument --image8 action store_true N/A N/A N/A parser add_argument --image16 action store_true N/A result N/A N/A parser parse_args N/A p N/A N/A re compile (\w+)/(\w+),(\w+)/(\w+),(\w+)/(\w+),(\w+).*$ N/A m N/A N/A p match N/A result cutout N/A N/A m None N/A N/A N/A res xlow xhigh ylow yhigh zlow zhigh N/A map int N/A N/A m groups N/A url N/A http://%s/ca/%s/hdf5/%s/ N/A N/A result baseurl N/A result token N/A result cutout N/A N/A result probmap N/A N/A cuboid N/A N/A np float32 N/A N/A N/A np random random_sample N/A N/A zhigh zlow N/A yhigh ylow N/A xhigh xlow N/A N/A N/A result mask N/A N/A cuboid N/A N/A np ones N/A N/A zhigh zlow N/A yhigh ylow N/A xhigh xlow dtype N/A np uint8 N/A N/A N/A result image8 N/A N/A cuboid N/A N/A N/A np ones N/A N/A zhigh zlow N/A yhigh ylow N/A xhigh xlow dtype N/A np uint8 255 N/A N/A N/A result image16 N/A N/A cuboid N/A N/A N/A np ones N/A N/A zhigh zlow N/A yhigh ylow N/A xhigh xlow dtype N/A np uint16 65535 N/A N/A cuboid N/A N/A np ones N/A N/A zhigh zlow N/A yhigh ylow N/A xhigh xlow dtype N/A np uint32 N/A tmpfile N/A N/A tempfile NamedTemporaryFile N/A h5fh N/A N/A h5py File N/A tmpfile name N/A N/A N/A h5fh create_dataset CUTOUT N/A cuboid shape data cuboid N/A N/A N/A h5fh flush N/A N/A N/A tmpfile seek 0 N/A N/A N/A f N/A N/A urllib2 urlopen url N/A N/A tmpfile read N/A N/A N/A N/A urllib2 URLError N/A e N/A N/A N/A Failed %s.  Exception %s. N/A url e N/A N/A N/A sys exit -1 N/A N/A N/A __name__ __main__ N/A N/A N/A main