Skip to content

Commit

Permalink
Update maskit/masks.py
Browse files Browse the repository at this point in the history
Co-authored-by: Max Fischer <maxfischer2781@gmail.com>
  • Loading branch information
eileen-kuehn and maxfischer2781 authored May 10, 2021
1 parent fbcfc27 commit ea6de45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions maskit/masks.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,11 @@ def mask_changed(self, mask: Mask, indices: np.ndarray):
return
np_indices = tuple(zip(*indices))
if not np.all(mask.mask[np_indices]):
if self.wire_mask == mask:
if self.wire_mask is mask:
self.parameters[:, np_indices] = self.default_value
elif self.layer_mask == mask:
elif self.layer_mask is mask:
self.parameters[np_indices, :] = self.default_value
elif self.parameter_mask == mask:
elif self.parameter_mask is mask:
self.parameters[np_indices] = self.default_value
else:
raise NotImplementedError(f"The mask {mask} is not supported")
Expand Down

0 comments on commit ea6de45

Please sign in to comment.