File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,5 @@ channels:
66dependencies :
77 # Multi language support:
88 - python>=3.6
9- - numpy
109 - netcdf4=*=mpi_mpich*
1110 - mpi4py
Original file line number Diff line number Diff line change 1313import os
1414import re
1515import datetime as dt
16- import numpy as np
1716import netCDF4 as nc
1817
1918####################################################################
@@ -177,9 +176,12 @@ def nemo_rebuild(in_file=None,
177176 }
178177 #
179178 if (nohalo ):
180- orig = gattrs ['DOMAIN_size_global' ]
181- gattrs ['original_DOMAIN_size_global' ] = orig
182- gattrs ['DOMAIN_size_global' ] = np .array ([gnx , gny ], dtype = orig .dtype )
179+ orig = gattrs ['DOMAIN_size_global' ].copy ()
180+ gattrs ['original_DOMAIN_size_global' ] = gattrs ['DOMAIN_size_global' ]
181+ orig [0 ]= gnx
182+ orig [1 ]= gny
183+ gattrs ['DOMAIN_size_global' ] = orig
184+ del orig
183185 orig = gattrs .pop ('comment' , None )
184186 if (orig == None ):
185187 gattrs ['comment' ] = 'Global domain halo removed'
You can’t perform that action at this time.
0 commit comments