Module Import alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias Assign NameStore Dict Str Str Assign NameStore Num Assign NameStore Dict Str ListLoad BinOpMod Str NameLoad Assign NameStore Dict Str Str Assign NameStore TupleLoad Num Num Assign NameStore Num Assign NameStore Num ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Num For NameStore Call NameLoad NameLoad body Assign NameStore BinOpAdd BinOpMult NameLoad NameLoad NameLoad If CompareGtE BinOpAdd BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num body Return NameLoad Return NameLoad decorator_list Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameLoad Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index Str Assign NameStore BinOpDiv BinOpSub NameLoad NameLoad NameLoad Assign NameStore BinOpDiv BinOpSub NameLoad NameLoad NameLoad Assign NameStore ListLoad For NameStore Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num body Assign NameStore ListLoad Assign NameStore BinOpAdd NameLoad BinOpMult NameLoad NameLoad For NameStore Call NameLoad Num NameLoad body Assign NameStore BinOpAdd NameLoad BinOpMult NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Dict Str Str ListLoad Num Num Num Num NameLoad Dict Str NameLoad Assign NameStore ListLoad Assign TupleStore NameStore NameStore NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr BinOpDiv NameLoad Call NameLoad NameLoad For NameStore Call NameLoad Num NameLoad body Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore ListLoad BinOpMult NameLoad NameLoad BinOpAdd BinOpMult NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword Dict Str NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad TupleLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Print BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Return TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore Num For TupleStore NameStore NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr For TupleStore TupleStore NameStore NameStore NameStore NameLoad body If CompareEq NameLoad Num body Assign NameStore Num orelse Assign NameStore Call NameLoad BinOpMult BinOpDiv Call NameLoad NameLoad NameLoad Num Assign SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str Dict Str Num If CompareGtE Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num orelse Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Assign NameStore ListLoad Print BinOpMod Str NameLoad TryFinally body Print BinOpMod Str NameLoad For NameStore Call NameLoad Num NameLoad body Assign SubscriptStore NameLoad Index Str BinOpMod Str BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call NameLoad NameLoad Print Str finalbody Print Str While NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad Expr Call AttributeLoad NameLoad attr Print Str Expr Call NameLoad NameLoad keyword NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A logging N/A math N/A os N/A sys N/A top_dir N/A N/A N/A os path abspath N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ N/A os pardir N/A os pardir N/A N/A N/A N/A sys path insert 0 top_dir six.moves range compat_range taskflow engines taskflow.engines.worker_based worker taskflow.patterns unordered_flow uf taskflow task taskflow.utils threading_utils N/A BASE_SHARED_CONF N/A exchange taskflow N/A WORKERS 2 N/A WORKER_CONF N/A tasks N/A N/A %s:MandelCalculator __name__ N/A ENGINE_CONF N/A engine worker-based N/A IMAGE_SIZE N/A 512 512 N/A CHUNK_COUNT 8 N/A MAX_ITERATIONS 25 MandelCalculator N/A N/A task Task N/A execute N/A N/A self image_config mandelbrot_config chunk N/A N/A N/A Returns the number of iterations before the computation "escapes".

        Given the real and imaginary parts of a complex number, determine if it
        is a candidate for membership in the mandelbrot set given a fixed
        number of iterations.
         mandelbrot N/A N/A x y max_iters N/A N/A N/A c N/A complex x y N/A z 0j N/A i N/A compat_range max_iters N/A N/A z N/A N/A z z c N/A N/A N/A N/A N/A z real N/A z real N/A N/A z imag N/A z imag 4 N/A N/A i N/A max_iters N/A N/A N/A min_x max_x min_y max_y max_iters mandelbrot_config N/A N/A height width N/A image_config N/A size N/A pixel_size_x N/A N/A max_x min_x width N/A pixel_size_y N/A N/A max_y min_y height N/A block N/A N/A y N/A compat_range N/A chunk N/A 0 N/A chunk N/A 1 N/A N/A row N/A N/A imag N/A min_y N/A y pixel_size_y N/A x N/A compat_range 0 width N/A N/A real N/A min_x N/A x pixel_size_x N/A N/A N/A row append N/A mandelbrot real imag max_iters N/A N/A N/A block append row N/A block N/A N/A calculate N/A N/A engine_conf N/A N/A N/A flow N/A N/A uf Flow mandelbrot N/A store N/A mandelbrot_config image_config N/A -2.0 1.0 -1.0 1.0 MAX_ITERATIONS N/A size IMAGE_SIZE N/A task_names N/A N/A N/A height _width IMAGE_SIZE N/A chunk_size N/A int N/A N/A math ceil N/A height N/A float CHUNK_COUNT N/A i N/A compat_range 0 CHUNK_COUNT N/A N/A chunk_name N/A chunk_%s i N/A task_name N/A calculation_%s i N/A rows N/A N/A i chunk_size N/A N/A i chunk_size chunk_size N/A N/A N/A flow add N/A MandelCalculator task_name rebind N/A chunk chunk_name N/A N/A store N/A chunk_name rows N/A N/A N/A task_names append task_name N/A eng N/A N/A engines load flow store store engine_conf engine_conf N/A N/A N/A eng run N/A gather N/A N/A name task_names N/A N/A N/A N/A gather extend N/A N/A N/A eng storage get name N/A points N/A N/A N/A y row N/A enumerate gather N/A N/A N/A x color N/A enumerate row N/A N/A N/A N/A points append N/A N/A x y color N/A points N/A write_image N/A N/A results output_filename N/A None N/A N/A N/A Gathered %s results that represents a mandelbrot image (using %s chunks that are computed jointly by %s workers). N/A N/A len results CHUNK_COUNT WORKERS N/A N/A output_filename N/A N/A N/A N/A PIL Image N/A N/A N/A ImportError N/A e N/A N/A N/A RuntimeError N/A Pillow is required to write image files: %s e N/A color_max 0 N/A N/A _point color results N/A N/A color_max N/A max color color_max N/A img N/A N/A Image new L IMAGE_SIZE black N/A pixels N/A N/A img load N/A N/A N/A x y color results N/A N/A N/A color_max 0 N/A N/A color 0 N/A N/A color N/A int N/A N/A N/A float color color_max 255.0 N/A N/A pixels N/A N/A x y color N/A N/A N/A img save output_filename N/A create_fractal N/A N/A N/A N/A N/A N/A N/A logging basicConfig level N/A logging ERROR N/A shared_conf N/A dict BASE_SHARED_CONF N/A N/A N/A shared_conf update N/A transport transport_options memory N/A polling_interval 0.1 N/A N/A N/A len N/A sys argv 2 N/A N/A output_filename N/A N/A sys argv N/A 1 N/A N/A output_filename None N/A worker_conf N/A dict WORKER_CONF N/A N/A N/A worker_conf update shared_conf N/A engine_conf N/A dict ENGINE_CONF N/A N/A N/A engine_conf update shared_conf N/A workers N/A N/A worker_topics N/A N/A N/A Calculating your mandelbrot fractal of size %sx%s. IMAGE_SIZE N/A N/A N/A N/A Running %s workers. WORKERS N/A i N/A compat_range 0 WORKERS N/A N/A N/A worker_conf N/A topic N/A calculator_%s N/A i 1 N/A N/A N/A worker_topics append N/A worker_conf N/A topic N/A w N/A N/A worker Worker worker_conf N/A runner N/A N/A threading_utils daemon_thread N/A w run N/A N/A N/A runner start N/A N/A N/A w wait N/A N/A N/A workers append N/A runner N/A w stop N/A N/A engine_conf N/A topics worker_topics N/A results N/A calculate engine_conf N/A Execution finished. N/A N/A Stopping workers. N/A workers N/A N/A N/A r stopper N/A N/A workers pop N/A N/A stopper N/A N/A N/A r join N/A Writing image... N/A N/A write_image results output_filename output_filename N/A N/A N/A __name__ __main__ N/A N/A N/A create_fractal