Skip to content

Commit

Permalink
Update _blocked_well.py
Browse files Browse the repository at this point in the history
Ensure dtype is maintained
  • Loading branch information
emmanesbit committed Jun 21, 2023
1 parent 67e4268 commit 78b6de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resqpy/well/_blocked_well.py
Original file line number Diff line number Diff line change
Expand Up @@ -3468,7 +3468,7 @@ def add_grid_property_to_blocked_well(self, uuid_list):
for part in parts:
array = gridpc.cached_part_array_ref(part)
indices = self.cell_indices_for_grid_uuid(grid.uuid)
bwarray = np.empty(shape = (indices.shape[0],))
bwarray = np.empty(shape = (indices.shape[0],), dtype=array.dtype)
for i, ind in enumerate(indices):
bwarray[i] = array[tuple(ind)]
bwpc.add_cached_array_to_imported_list(
Expand Down

0 comments on commit 78b6de5

Please sign in to comment.