Skip to content

Commit a233a2f

Browse files
authored
Merge pull request #880 from xylar/fix-isomip-plus-viz
Make a deep copy of `PatchCollection`s in ISOMIP+ test cases
2 parents e4d53af + be0e125 commit a233a2f

File tree

1 file changed

+2
-2
lines changed
  • compass/ocean/tests/isomip_plus/viz

1 file changed

+2
-2
lines changed

compass/ocean/tests/isomip_plus/viz/plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,10 +794,10 @@ def _plot_horiz_field(self, field, title, outFileName, oceanDomain=True,
794794
return
795795

796796
if oceanDomain:
797-
localPatches = copy.copy(self.oceanPatches)
797+
localPatches = copy.deepcopy(self.oceanPatches)
798798
localPatches.set_array(field[self.oceanMask])
799799
else:
800-
localPatches = copy.copy(self.cavityPatches)
800+
localPatches = copy.deepcopy(self.cavityPatches)
801801
localPatches.set_array(field[self.cavityMask])
802802

803803
if cmap is not None:

0 commit comments

Comments
 (0)