@@ -5966,7 +5966,6 @@ 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')
59705969 with nogil:
59715970 ierr = nc_put_vars(self ._grpid, self ._varid,
59725971 startp, countp, stridep, strdata)
@@ -5995,7 +5994,6 @@ NC_CHAR).
59955994 ierr = nc_put_vara(self ._grpid, self ._varid,
59965995 startp, countp, vldata)
59975996 else :
5998- # raise IndexError('strides must all be 1 for vlen variables')
59995997 with nogil:
60005998 ierr = nc_put_vars(self ._grpid, self ._varid,
60015999 startp, countp, stridep, vldata)
@@ -6091,11 +6089,9 @@ NC_CHAR).
60916089 ierr = nc_get_vara(self ._grpid, self ._varid,
60926090 startp, countp, strdata)
60936091 else :
6094- # FIXME: is this a bug in netCDF4?
6095- raise IndexError (' strides must all be 1 for string variables' )
6096- # with nogil:
6097- # ierr = nc_get_vars(self._grpid, self._varid,
6098- # startp, countp, stridep, strdata)
6092+ with nogil:
6093+ ierr = nc_get_vars(self ._grpid, self ._varid,
6094+ startp, countp, stridep, strdata)
60996095 if ierr == NC_EINVALCOORDS:
61006096 raise IndexError
61016097 elif ierr != NC_NOERR:
@@ -6130,7 +6126,6 @@ NC_CHAR).
61306126 ierr = nc_get_vara(self ._grpid, self ._varid,
61316127 startp, countp, vldata)
61326128 else :
6133- # raise IndexError('strides must all be 1 for vlen variables')
61346129 with nogil:
61356130 ierr = nc_get_vars(self ._grpid, self ._varid,
61366131 startp, countp, stridep, vldata)
0 commit comments