Skip to content

Commit 6653657

Browse files
danlipsajourdain
authored andcommitted
fix: better fix for MTime() issue
1 parent 3ec9870 commit 6653657

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/e3sm_quickview/plugins/eam_projection.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,11 @@ def RequestData(self, request, inInfo, outInfo):
497497
inData = self.GetInputData(inInfo, 0, 0)
498498
outData = self.GetOutputData(outInfo, 0)
499499
if self.trim_lon == [0, 0] and self.trim_lat == [0, 0]:
500-
# ShallowCopy results in a crash
501-
outData.DeepCopy(inData)
500+
outData.ShallowCopy(inData)
501+
# if the filter execution follows an another execution that trims the
502+
# number of points, the downstream filter could think that
503+
# the trimmed points are still valid which results in a crash
504+
outData.GetPoints().Modified()
502505
return 1
503506

504507
if self.cached_cell_centers and self.cached_cell_centers.GetMTime() >= max(

0 commit comments

Comments
 (0)