Skip to content

Commit dadc5ae

Browse files
committed
fix: fix crash when: trim_lon = 200 then trim_lon = 0
1 parent dd6ec62 commit dadc5ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/e3sm_quickview/plugins/eam_projection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,8 @@ def RequestData(self, request, inInfo, outInfo):
505505
inData = self.GetInputData(inInfo, 0, 0)
506506
outData = self.GetOutputData(outInfo, 0)
507507
if self.trim_lon == [0, 0] and self.trim_lat == [0, 0]:
508-
outData.ShallowCopy(inData)
508+
# ShallowCopy results in a crash
509+
outData.DeepCopy(inData)
509510
return 1
510511

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

0 commit comments

Comments
 (0)