Skip to content

Commit 293203f

Browse files
Apply suggestions from @paulromano
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
1 parent 90a4358 commit 293203f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openmc_plotter/plotmodel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ def _create_distribcell_image(self, tally, tally_value, scores, nuclides, view=N
518518
cell_id_mask = self.cell_ids == cell_id
519519
for i, v in enumerate(data):
520520
instance_mask = self.instances == i
521-
image_data[np.logical_and(cell_id_mask, instance_mask)] = v
521+
image_data[cell_id_mask & instance_mask] = v
522522

523523
data_min = np.min(data)
524524
data_max = np.max(data)

0 commit comments

Comments
 (0)