@@ -80,7 +80,7 @@ def shape(
8080 frame : Frame ,
8181 stmt : stmts .Shape ,
8282 ):
83- return (frame .get_typed (stmt .zone , Grid ).shape ,)
83+ return (frame .get_casted (stmt .zone , Grid ).shape ,)
8484
8585 @impl (stmts .Get )
8686 def get (
@@ -89,9 +89,9 @@ def get(
8989 frame : Frame ,
9090 stmt : stmts .Get ,
9191 ):
92- idx = frame .get_typed (stmt .idx , tuple )
92+ idx = frame .get_casted (stmt .idx , tuple )
9393
94- return (frame .get_typed (stmt .zone , Grid ).get (idx ),)
94+ return (frame .get_casted (stmt .zone , Grid ).get (idx ),)
9595
9696 @impl (stmts .GetXPos )
9797 def get_x_pos (
@@ -100,7 +100,7 @@ def get_x_pos(
100100 frame : Frame ,
101101 stmt : stmts .GetXPos ,
102102 ):
103- return (frame .get_typed (stmt .zone , Grid ).x_positions ,)
103+ return (frame .get_casted (stmt .zone , Grid ).x_positions ,)
104104
105105 @impl (stmts .GetYPos )
106106 def get_y_pos (
@@ -109,7 +109,7 @@ def get_y_pos(
109109 frame : Frame ,
110110 stmt : stmts .GetYPos ,
111111 ):
112- return (frame .get_typed (stmt .zone , Grid ).y_positions ,)
112+ return (frame .get_casted (stmt .zone , Grid ).y_positions ,)
113113
114114 @impl (stmts .GetSubGrid )
115115 def get_view (
@@ -118,10 +118,10 @@ def get_view(
118118 frame : Frame ,
119119 stmt : stmts .GetSubGrid ,
120120 ):
121- x_indices = frame .get_typed (stmt .x_indices , ilist .IList )
122- y_indices = frame .get_typed (stmt .y_indices , ilist .IList )
121+ x_indices = frame .get_casted (stmt .x_indices , ilist .IList )
122+ y_indices = frame .get_casted (stmt .y_indices , ilist .IList )
123123
124- return (frame .get_typed (stmt .zone , Grid ).get_view (x_indices , y_indices ),)
124+ return (frame .get_casted (stmt .zone , Grid ).get_view (x_indices , y_indices ),)
125125
126126 @impl (stmts .GetXBounds )
127127 def get_x_bounds (
@@ -130,7 +130,7 @@ def get_x_bounds(
130130 frame : Frame ,
131131 stmt : stmts .GetXBounds ,
132132 ):
133- return (frame .get_typed (stmt .zone , Grid ).x_bounds (),)
133+ return (frame .get_casted (stmt .zone , Grid ).x_bounds (),)
134134
135135 @impl (stmts .GetYBounds )
136136 def get_y_bounds (
@@ -139,7 +139,7 @@ def get_y_bounds(
139139 frame : Frame ,
140140 stmt : stmts .GetYBounds ,
141141 ):
142- return (frame .get_typed (stmt .zone , Grid ).y_bounds (),)
142+ return (frame .get_casted (stmt .zone , Grid ).y_bounds (),)
143143
144144 @impl (stmts .Shift )
145145 def shift (
@@ -148,9 +148,9 @@ def shift(
148148 frame : Frame ,
149149 stmt : stmts .Shift ,
150150 ):
151- grid = frame .get_typed (stmt .zone , Grid )
152- x_shift = frame .get_typed (stmt .x_shift , float )
153- y_shift = frame .get_typed (stmt .y_shift , float )
151+ grid = frame .get_casted (stmt .zone , Grid )
152+ x_shift = frame .get_casted (stmt .x_shift , float )
153+ y_shift = frame .get_casted (stmt .y_shift , float )
154154
155155 return (grid .shift (x_shift , y_shift ),)
156156
@@ -161,9 +161,9 @@ def scale(
161161 frame : Frame ,
162162 stmt : stmts .Scale ,
163163 ):
164- grid = frame .get_typed (stmt .zone , Grid )
165- x_scale = frame .get_typed (stmt .x_scale , float )
166- y_scale = frame .get_typed (stmt .y_scale , float )
164+ grid = frame .get_casted (stmt .zone , Grid )
165+ x_scale = frame .get_casted (stmt .x_scale , float )
166+ y_scale = frame .get_casted (stmt .y_scale , float )
167167
168168 return (grid .scale (x_scale , y_scale ),)
169169
@@ -174,10 +174,10 @@ def repeat(
174174 frame : Frame ,
175175 stmt : stmts .Repeat ,
176176 ):
177- grid = frame .get_typed (stmt .zone , Grid )
178- x_times = frame .get_typed (stmt .x_times , int )
179- y_times = frame .get_typed (stmt .y_times , int )
180- x_gap = frame .get_typed (stmt .x_gap , float )
181- y_gap = frame .get_typed (stmt .y_gap , float )
177+ grid = frame .get_casted (stmt .zone , Grid )
178+ x_times = frame .get_casted (stmt .x_times , int )
179+ y_times = frame .get_casted (stmt .y_times , int )
180+ x_gap = frame .get_casted (stmt .x_gap , float )
181+ y_gap = frame .get_casted (stmt .y_gap , float )
182182
183183 return (grid .repeat (x_times , y_times , x_gap , y_gap ),)
0 commit comments