@@ -183,23 +183,23 @@ def rst_table(rows, cols, lines_list):
183183
184184 # Examine the array on all the engines.
185185 cmd = 'distbuffer = %s.__distarray__()' % (array .key )
186- context ._execute (cmd )
186+ context ._execute (cmd , targets = context . targets )
187187 cmd = 'db_keys = list(distbuffer.keys())'
188- context ._execute (cmd )
188+ context ._execute (cmd , targets = context . targets )
189189 cmd = 'db_version = distbuffer["__version__"]'
190- context ._execute (cmd )
190+ context ._execute (cmd , targets = context . targets )
191191 cmd = 'db_buffer = distbuffer["buffer"]'
192- context ._execute (cmd )
192+ context ._execute (cmd , targets = context . targets )
193193 cmd = 'db_dim_data = distbuffer["dim_data"]'
194- context ._execute (cmd )
194+ context ._execute (cmd , targets = context . targets )
195195 cmd = 'db_coords = %s.cart_coords' % (array .key )
196- context ._execute (cmd )
196+ context ._execute (cmd , targets = context . targets )
197197 # Get data from each engine.
198- db_keys = context ._pull ('db_keys' )
199- db_version = context ._pull ('db_version' )
200- db_buffer = context ._pull ('db_buffer' )
201- db_dim_data = context ._pull ('db_dim_data' )
202- db_coords = context ._pull ('db_coords' )
198+ db_keys = context ._pull ('db_keys' , targets = context . targets )
199+ db_version = context ._pull ('db_version' , targets = context . targets )
200+ db_buffer = context ._pull ('db_buffer' , targets = context . targets )
201+ db_dim_data = context ._pull ('db_dim_data' , targets = context . targets )
202+ db_coords = context ._pull ('db_coords' , targets = context . targets )
203203 # Get local ndarrays.
204204 db_ndarrays = array .get_ndarrays ()
205205
@@ -336,8 +336,8 @@ def shape_text(shape):
336336 # This is duplicating work in print_array_documentation(),
337337 # but it is needed for the local array plots.
338338 cmd = 'process_coords = %s.cart_coords' % (array .key )
339- context ._execute (cmd )
340- process_coords = context ._pull ('process_coords' )
339+ context ._execute (cmd , targets = context . targets )
340+ process_coords = context ._pull ('process_coords' , targets = context . targets )
341341
342342 # Plot title and axis labels.
343343 plot_title = title + ' ' + shape_text (shape ) + '\n '
0 commit comments