@@ -5966,10 +5966,10 @@ NC_CHAR).
59665966 ierr = nc_put_vara(self ._grpid, self ._varid,
59675967 startp, countp, strdata)
59685968 else :
5969- raise IndexError (' strides must all be 1 for string variables' )
5970- # with nogil:
5971- # ierr = nc_put_vars(self._grpid, self._varid,
5972- # startp, countp, stridep, strdata)
5969+ # raise IndexError('strides must all be 1 for string variables')
5970+ with nogil:
5971+ ierr = nc_put_vars(self ._grpid, self ._varid,
5972+ startp, countp, stridep, strdata)
59735973 _ensure_nc_success(ierr)
59745974 free(strdata)
59755975 else :
@@ -5995,10 +5995,10 @@ NC_CHAR).
59955995 ierr = nc_put_vara(self ._grpid, self ._varid,
59965996 startp, countp, vldata)
59975997 else :
5998- raise IndexError (' strides must all be 1 for vlen variables' )
5999- # with nogil:
6000- # ierr = nc_put_vars(self._grpid, self._varid,
6001- # startp, countp, stridep, vldata)
5998+ # raise IndexError('strides must all be 1 for vlen variables')
5999+ with nogil:
6000+ ierr = nc_put_vars(self ._grpid, self ._varid,
6001+ startp, countp, stridep, vldata)
60026002 _ensure_nc_success(ierr)
60036003 # free the pointer array.
60046004 free(vldata)
@@ -6130,10 +6130,10 @@ NC_CHAR).
61306130 ierr = nc_get_vara(self ._grpid, self ._varid,
61316131 startp, countp, vldata)
61326132 else :
6133- raise IndexError (' strides must all be 1 for vlen variables' )
6134- # with nogil:
6135- # ierr = nc_get_vars(self._grpid, self._varid,
6136- # startp, countp, stridep, vldata)
6133+ # raise IndexError('strides must all be 1 for vlen variables')
6134+ with nogil:
6135+ ierr = nc_get_vars(self ._grpid, self ._varid,
6136+ startp, countp, stridep, vldata)
61376137 if ierr == NC_EINVALCOORDS:
61386138 raise IndexError
61396139 elif ierr != NC_NOERR:
0 commit comments