Module Expr Str ImportFrom alias alias Import alias Import alias Import alias Import alias Import alias Expr Call AttributeLoad NameLoad attr Num ImportFrom alias If UnaryOpNot AttributeLoad NameLoad attr body ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad BinOpAdd BinOpAdd BinOpPow AttributeLoad NameLoad attr Num BinOpPow AttributeLoad NameLoad attr Num BinOpPow AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad BinOpAdd BinOpAdd BinOpPow BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num BinOpPow BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num BinOpPow BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpAdd Str Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str keyword Str FunctionDef arguments args NameParam NameParam defaults body Return BinOpAdd NameLoad BinOpMult NameLoad Num decorator_list Call AttributeLoad NameLoad attr keyword Str keyword Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore IfExp CompareIs NameLoad NameLoad BinOpSub Num NameLoad NameLoad Assign NameStore Call NameLoad BinOpAdd BinOpMult AttributeLoad NameLoad attr NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad BinOpAdd BinOpMult AttributeLoad NameLoad attr NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad BinOpAdd BinOpMult AttributeLoad NameLoad attr NameLoad BinOpMult AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpAdd BinOpMult ListLoad Num NameLoad Call NameLoad Num BinOpSub Call NameLoad NameLoad NameLoad AugAssignAdd NameStore BinOpMult ListLoad BinOpSub Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad orelse If CompareGt Call NameLoad NameLoad BinOpAdd BinOpSub Call NameLoad NameLoad NameLoad Num body Raise Call NameLoad Str orelse If CompareLt Call NameLoad NameLoad BinOpAdd BinOpSub Call NameLoad NameLoad NameLoad Num body Raise Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Num For NameStore SubscriptLoad NameLoad Slice Num body If CompareLt NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index BinOpSub AttributeLoad NameLoad attr Num SubscriptLoad AttributeLoad NameLoad attr Index BinOpSub Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If BoolOpOr CompareLt NameLoad SubscriptLoad NameLoad Index Num CompareGt NameLoad SubscriptLoad NameLoad Index Num body Raise Call NameLoad Str If CompareEq NameLoad SubscriptLoad NameLoad Index Num body Return SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareEq NameLoad SubscriptLoad NameLoad Index Num body Return SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp SubscriptLoad AttributeLoad NameLoad attr Index BinOpAdd BinOpAdd BinOpSub NameLoad AttributeLoad NameLoad attr Num NameLoad comprehension NameStore Call NameLoad BinOpAdd AttributeLoad NameLoad attr Num Assign NameStore AttributeLoad NameLoad attr For NameStore Call NameLoad Num BinOpAdd AttributeLoad NameLoad attr Num body For NameStore Call NameLoad BinOpAdd BinOpAdd BinOpSub NameLoad AttributeLoad NameLoad attr NameLoad Num BinOpAdd NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index BinOpSub BinOpAdd NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index BinOpSub NameLoad Num Assign NameStore BinOpDiv BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad Assign NameStore BinOpDiv BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad Assign NameStore BinOpSub BinOpSub BinOpAdd BinOpSub NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Num Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr SubscriptLoad NameLoad Index BinOpAdd NameLoad Num NameLoad NameLoad Return SubscriptLoad NameLoad Index Num decorator_list Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad BinOpSub AttributeLoad NameLoad attr Num BinOpSub Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareLtELt SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index BinOpAdd NameLoad Num body Assign NameStore NameLoad Break orelse Assign NameStore BinOpSub SubscriptLoad NameLoad Index Num Num Return NameLoad decorator_list Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Assign NameStore BinOpDiv BinOpMult NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore Num Assign NameStore Call NameLoad Num For NameStore Call NameLoad Num Num body Assign NameStore NameLoad Assign NameStore BinOpMult BinOpDiv Num Num NameLoad Assign NameStore Call NameLoad NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Num Call NameLoad BinOpMult BinOpDiv NameLoad NameLoad Num Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd Call NameLoad AttributeLoad NameLoad attr Num Assign NameStore Num For NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr body If CompareLtELt NameLoad NameLoad BinOpAdd NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Return TupleLoad NameLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AugAssignAdd NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return TupleLoad BinOpSub Call NameLoad AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore BinOpDiv BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpDiv BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Num attr Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore BinOpDiv NameLoad SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Num Assign NameStore BinOpAdd BinOpAdd NameLoad BinOpMult NameLoad SubscriptLoad NameLoad Index Num BinOpMult NameLoad NameLoad Assign NameStore Call SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Num NameLoad If CompareGt BinOpAdd NameLoad BinOpDiv Num Num NameLoad body Assign NameStore Call SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Num BinOpSub NameLoad BinOpDiv Num Num Assign NameStore BinOpSub NameLoad NameLoad orelse Assign NameStore Call SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Num BinOpAdd NameLoad BinOpDiv Num Num Assign NameStore BinOpSub NameLoad NameLoad If CompareNotEq Call AttributeLoad NameLoad attr Num body AugAssignAdd AttributeStore NameLoad attr BinOpMult BinOpMult BinOpDiv AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpSub NameLoad Num AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr BinOpMult BinOpMult BinOpDiv UnaryOpUSub AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpSub NameLoad Num AttributeLoad NameLoad attr orelse Expr Call NameLoad Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body If CompareGtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareGtE AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareLt AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareLt AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore ListComp BinOpMult ListLoad Num NameLoad comprehension NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad BinOpDiv BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num BinOpDiv BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad For NameStore Call NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad BinOpMult BinOpDiv BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad BinOpMult BinOpDiv BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad NameLoad body AugAssignSub NameStore Num If CompareEq NameLoad NameLoad body AugAssignSub NameStore Num Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index BinOpSub BinOpSub NameLoad NameLoad Num Num Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Return NameLoad decorator_list Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults AttributeLoad NameLoad attr body Assign NameStore ListLoad Call NameLoad ListLoad Call NameLoad Num Num Num Call NameLoad Num Num Num Call NameLoad Num Num Num Call NameLoad Num Num Num Call NameLoad Num Num Num Call NameLoad Num Num Num Call NameLoad Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Num Call NameLoad ListLoad Call NameLoad Num Num Num Call NameLoad Num Num Num Call NameLoad Num Num Num Call NameLoad Num Num Num Num ListLoad Num Num Num Num Num Num Call NameLoad ListLoad Call NameLoad Num Num Num Call NameLoad Num Num Num Call NameLoad Num Num Num Call NameLoad Num Num Num Num ListLoad Num Num Num Num Num Num Assign NameStore Call NameLoad NameLoad Num Return Call AttributeLoad NameLoad attr NameLoad Num Num NameLoad decorator_list If CompareEq NameLoad Str body Import alias Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad
N/A N/A create chaosgame-like fractals
 __future__ division print_function N/A cython N/A time N/A operator N/A optparse N/A random N/A N/A N/A random seed 1234 functools reduce N/A N/A N/A cython compiled N/A math sqrt GVector N/A object N/A __init__ N/A N/A self x y z N/A 0 0 0 N/A N/A N/A self x x N/A N/A self y y N/A N/A self z z N/A Mag N/A N/A self N/A N/A N/A N/A sqrt N/A N/A N/A N/A self x 2 N/A N/A self y 2 N/A N/A self z 2 N/A dist N/A N/A self other N/A N/A N/A N/A sqrt N/A N/A N/A N/A N/A self x N/A other x 2 N/A N/A N/A self y N/A other y 2 N/A N/A N/A self z N/A other z 2 N/A __add__ N/A N/A self other N/A N/A N/A N/A N/A isinstance other GVector N/A N/A N/A ValueError N/A Can't add GVector to  N/A str N/A type other N/A v N/A GVector N/A N/A self x N/A other x N/A N/A self y N/A other y N/A N/A self z N/A other z N/A v N/A N/A N/A cython locals self GVector other GVector __sub__ N/A N/A self other N/A N/A N/A N/A self N/A other -1 N/A N/A N/A cython locals self GVector other GVector __mul__ N/A N/A self other N/A N/A N/A v N/A GVector N/A N/A self x other N/A N/A self y other N/A N/A self z other N/A v N/A N/A N/A cython locals self GVector other N/A cython double N/A __rmul__ __mul__ linear_combination N/A N/A self other l1 l2 N/A None N/A N/A l2_ N/A N/A l2 None N/A 1 l1 l2 N/A v N/A GVector N/A N/A N/A self x l1 N/A N/A other x l2_ N/A N/A N/A self y l1 N/A N/A other y l2_ N/A N/A N/A self z l1 N/A N/A other z l2_ N/A v N/A N/A N/A cython locals other GVector l1 N/A cython double l2_ N/A cython double __str__ N/A N/A self N/A N/A N/A N/A <%f, %f, %f> N/A N/A self x N/A self y N/A self z N/A __repr__ N/A N/A self N/A N/A N/A N/A GVector(%f, %f, %f) N/A N/A self x N/A self y N/A self z N/A N/A GetKnots N/A N/A points degree N/A N/A N/A knots N/A N/A N/A 0 degree N/A range 1 N/A N/A len points degree N/A knots N/A N/A N/A N/A len points degree degree N/A knots N/A Spline N/A object N/A N/A Class for representing B-Splines and NURBS of arbitrary degree __init__ N/A N/A self points degree knots N/A 3 None N/A N/A Creates a Spline. points is a list of GVector, degree is the degree of the Spline. N/A N/A knots None N/A N/A N/A self knots N/A GetKnots points degree N/A N/A N/A N/A len points N/A N/A N/A len knots degree 1 N/A N/A N/A ValueError too many control points N/A N/A N/A N/A len points N/A N/A N/A len knots degree 1 N/A N/A N/A ValueError not enough control points N/A last N/A knots N/A 0 N/A cur N/A knots N/A 1 N/A N/A N/A cur last N/A N/A N/A ValueError knots not strictly increasing N/A last cur N/A N/A self knots knots N/A N/A self points points N/A N/A self degree degree N/A GetDomain N/A N/A self N/A N/A N/A Returns the domain of the B-Spline N/A N/A N/A N/A self knots N/A N/A N/A self degree 1 N/A N/A self knots N/A N/A N/A len N/A self knots N/A self degree N/A __call__ N/A N/A self u N/A N/A N/A Calculates a point of the B-Spline using de Boors Algorithm N/A dom N/A N/A self GetDomain N/A N/A N/A u N/A dom N/A 0 N/A u N/A dom N/A 1 N/A N/A N/A ValueError Function value not in domain N/A N/A u N/A dom N/A 0 N/A N/A N/A N/A self points N/A 0 N/A N/A u N/A dom N/A 1 N/A N/A N/A N/A self points N/A -1 N/A I N/A N/A self GetIndex u N/A d N/A N/A N/A self points N/A N/A N/A N/A I N/A self degree 1 ii N/A ii N/A range N/A N/A self degree 1 N/A U N/A self knots N/A ik N/A range 1 N/A N/A self degree 1 N/A N/A ii N/A range N/A N/A N/A I N/A self degree ik 1 N/A I 2 N/A N/A ua N/A U N/A N/A N/A ii N/A self degree ik N/A ub N/A U N/A N/A ii 1 N/A co1 N/A N/A ua u N/A ua ub N/A co2 N/A N/A u ub N/A ua ub N/A index N/A N/A N/A N/A ii I N/A self degree ik 1 N/A N/A d N/A index N/A N/A N/A d N/A index linear_combination N/A d N/A N/A index 1 co1 co2 N/A N/A d N/A 0 N/A N/A N/A cython locals ik N/A cython long ii N/A cython long I N/A cython long ua N/A cython long ub N/A cython long u N/A cython double dom N/A N/A cython long N/A cython long GetIndex N/A N/A self u N/A N/A N/A dom N/A N/A self GetDomain N/A ii N/A range N/A N/A self degree 1 N/A N/A len N/A self knots N/A self degree N/A N/A N/A N/A N/A self knots N/A ii u N/A N/A self knots N/A N/A ii 1 N/A N/A I ii N/A N/A N/A I N/A N/A dom N/A 1 1 N/A I N/A N/A N/A cython locals ii N/A cython long I N/A cython long dom N/A N/A cython long N/A cython long __len__ N/A N/A self N/A N/A N/A N/A len N/A self points N/A __repr__ N/A N/A self N/A N/A N/A N/A Spline(%r, %r, %r) N/A N/A self points N/A self degree N/A self knots N/A N/A Chaosgame N/A object N/A __init__ N/A N/A self splines thickness N/A 0.1 N/A N/A N/A self splines splines N/A N/A self thickness thickness N/A N/A self minx N/A min N/A N/A p x N/A spl splines N/A p N/A spl points N/A N/A self miny N/A min N/A N/A p y N/A spl splines N/A p N/A spl points N/A N/A self maxx N/A max N/A N/A p x N/A spl splines N/A p N/A spl points N/A N/A self maxy N/A max N/A N/A p y N/A spl splines N/A p N/A spl points N/A N/A self height N/A N/A self maxy N/A self miny N/A N/A self width N/A N/A self maxx N/A self minx N/A N/A self num_trafos N/A N/A maxlength N/A N/A thickness N/A self width N/A self height N/A spl splines N/A N/A length 0 N/A curr N/A spl 0 N/A i N/A range 1 1000 N/A N/A last curr N/A t N/A N/A 1 999 i N/A curr N/A spl t N/A length N/A N/A curr dist last N/A N/A N/A N/A self num_trafos append N/A max 1 N/A int N/A N/A length maxlength 1.5 N/A N/A self num_total N/A reduce N/A operator add N/A self num_trafos 0 N/A N/A N/A cython locals splines list thickness N/A cython double maxlength N/A cython double length N/A cython double curr GVector last GVector p GVector spl Spline t N/A cython double i int get_random_trafo N/A N/A self N/A N/A N/A r N/A N/A random randrange N/A N/A int N/A self num_total 1 N/A l 0 N/A i N/A range N/A len N/A self num_trafos N/A N/A N/A l r N/A l N/A N/A self num_trafos N/A i N/A N/A N/A i N/A N/A random randrange N/A N/A self num_trafos N/A i N/A l N/A N/A self num_trafos N/A i N/A N/A N/A N/A len N/A self num_trafos 1 N/A N/A random randrange N/A N/A self num_trafos N/A -1 N/A transform_point N/A N/A self point trafo N/A None N/A N/A x N/A N/A N/A point x N/A self minx N/A self width N/A y N/A N/A N/A point y N/A self miny N/A self height N/A N/A trafo None N/A N/A trafo N/A N/A self get_random_trafo N/A N/A start end N/A N/A N/A N/A self splines N/A N/A trafo N/A 0 GetDomain N/A length N/A end start N/A seg_length N/A length N/A N/A self num_trafos N/A N/A trafo N/A 0 N/A t N/A N/A start N/A seg_length N/A trafo N/A 1 N/A seg_length x N/A basepoint N/A N/A N/A self splines N/A N/A trafo N/A 0 t N/A N/A N/A t N/A 1 50000 end N/A N/A neighbour N/A N/A N/A self splines N/A N/A trafo N/A 0 N/A t N/A 1 50000 N/A derivative N/A neighbour basepoint N/A N/A neighbour N/A N/A N/A self splines N/A N/A trafo N/A 0 N/A t N/A 1 50000 N/A derivative N/A basepoint neighbour N/A N/A N/A N/A derivative Mag 0 N/A N/A N/A basepoint x N/A N/A N/A N/A derivative y N/A N/A derivative Mag N/A y 0.5 N/A self thickness N/A N/A basepoint y N/A N/A N/A N/A N/A derivative x N/A N/A derivative Mag N/A y 0.5 N/A self thickness N/A N/A N/A print r end N/A N/A N/A self truncate basepoint N/A basepoint N/A N/A N/A cython locals neighbour GVector basepoint GVector derivative GVector seg_length N/A cython double start N/A cython double end N/A cython double t N/A cython double truncate N/A N/A self point N/A N/A N/A N/A N/A point x N/A self maxx N/A N/A N/A point x N/A self maxx N/A N/A N/A point y N/A self maxy N/A N/A N/A point y N/A self maxy N/A N/A N/A point x N/A self minx N/A N/A N/A point x N/A self minx N/A N/A N/A point y N/A self miny N/A N/A N/A point y N/A self miny N/A create_image_chaos N/A N/A self timer w h n N/A N/A N/A im N/A N/A N/A 1 h N/A i N/A range w N/A point N/A GVector N/A N/A N/A self maxx N/A self minx 2 N/A N/A N/A self maxy N/A self miny 2 0 N/A times N/A N/A _ N/A range n N/A N/A t1 N/A timer N/A i N/A range 5000 N/A N/A point N/A N/A self transform_point point N/A x N/A int N/A N/A N/A N/A point x N/A self minx N/A self width w N/A y N/A int N/A N/A N/A N/A point y N/A self miny N/A self height h N/A N/A x w N/A N/A x 1 N/A N/A y h N/A N/A y 1 N/A N/A N/A im N/A x N/A N/A N/A h y 1 0 N/A t2 N/A timer N/A N/A N/A times append N/A t2 t1 N/A times N/A N/A N/A cython locals x N/A cython long y N/A cython long N/A main N/A N/A n timer N/A N/A time time N/A N/A splines N/A N/A Spline N/A N/A GVector 1.59735 3.30446 0.0 N/A GVector 1.57581 4.12326 0.0 N/A GVector 1.31321 5.28835 0.0 N/A GVector 1.6189 5.32991 0.0 N/A GVector 2.88994 5.5027 0.0 N/A GVector 2.37306 4.38183 0.0 N/A GVector 1.662 4.36028 0.0 3 N/A 0 0 0 1 1 1 2 2 2 N/A Spline N/A N/A GVector 2.8045 4.01735 0.0 N/A GVector 2.5505 3.52523 0.0 N/A GVector 1.97901 2.62036 0.0 N/A GVector 1.97901 2.62036 0.0 3 N/A 0 0 0 1 1 1 N/A Spline N/A N/A GVector 2.00167 4.01132 0.0 N/A GVector 2.33504 3.31283 0.0 N/A GVector 2.3668 3.23346 0.0 N/A GVector 2.3668 3.23346 0.0 3 N/A 0 0 0 1 1 1 N/A c N/A Chaosgame splines 0.25 N/A N/A N/A c create_image_chaos timer 1000 1200 n N/A N/A N/A __name__ __main__ N/A N/A util N/A parser N/A N/A optparse OptionParser usage %prog [options] description Test the performance of the Chaos benchmark N/A N/A N/A util add_standard_options_to parser N/A N/A options args N/A N/A parser parse_args N/A N/A N/A util run_benchmark options N/A options num_runs main