Skip to content

Commit e924563

Browse files
committed
Minor change to broadcast
1 parent 6d3b1e8 commit e924563

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pylops_mpi/DistributedArray.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,7 @@ def __setitem__(self, index, value):
130130
Represents the value that will be assigned to the local array at
131131
the specified index positions.
132132
"""
133-
if self.partition is Partition.BROADCAST:
134-
self.local_array[index] = self.base_comm.bcast(value)
135-
else:
136-
self.local_array[index] = value
133+
self.local_array[index] = value
137134

138135
@property
139136
def global_shape(self):

0 commit comments

Comments
 (0)