Skip to content

Commit ab9adc4

Browse files
committed
Handle tipper and impedance receivers
1 parent 7dc6f9b commit ab9adc4

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

simpeg/dask/utils.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,18 @@ def get_parallel_blocks(
5757
block_count += 1
5858
blocks.append([])
5959

60+
locs = rx.locations
61+
62+
if isinstance(locs, tuple):
63+
locs = locs[0]
64+
6065
blocks[block_count].append(
6166
(
6267
(s_id, r_id, ind),
6368
(
6469
chunk,
6570
np.arange(row_index, row_index + chunk_size).astype(int),
66-
rx.locations.shape[0],
71+
locs.shape[0],
6772
),
6873
)
6974
)

0 commit comments

Comments
 (0)