Skip to content

Commit

Permalink
Merge pull request #880 from xylar/fix-isomip-plus-viz
Browse files Browse the repository at this point in the history
Make a deep copy of `PatchCollection`s in ISOMIP+ test cases
  • Loading branch information
xylar authored Jan 2, 2025
2 parents e4d53af + be0e125 commit a233a2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compass/ocean/tests/isomip_plus/viz/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -794,10 +794,10 @@ def _plot_horiz_field(self, field, title, outFileName, oceanDomain=True,
return

if oceanDomain:
localPatches = copy.copy(self.oceanPatches)
localPatches = copy.deepcopy(self.oceanPatches)
localPatches.set_array(field[self.oceanMask])
else:
localPatches = copy.copy(self.cavityPatches)
localPatches = copy.deepcopy(self.cavityPatches)
localPatches.set_array(field[self.cavityMask])

if cmap is not None:
Expand Down

0 comments on commit a233a2f

Please sign in to comment.