File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -4656,13 +4656,12 @@ pre-filled)."""
4656
4656
except AttributeError :
4657
4657
# _FillValue attribute not set, see if we can retrieve _FillValue.
4658
4658
# for primitive data types.
4659
- if self ._isprimitive
4660
- return np.array(default_fillvals[self .dtype.str[1 :]],self .dtype)
4661
- # fillval = np.array(default_fillvals[self.dtype.str[1:]],self.dtype)
4662
- # with nogil:
4663
- # ierr=nc_inq_var_fill(self._grpid,self._varid,&no_fill,PyArray_DATA(fillval))
4664
- # _ensure_nc_success(ierr)
4665
- # return fillval
4659
+ if self ._isprimitive:
4660
+ # return numpy.array(default_fillvals[self.dtype.str[1:]],self.dtype)
4661
+ fillval = numpy.array(default_fillvals[self .dtype.str[1 :]],self .dtype)
4662
+ ierr= nc_inq_var_fill(self ._grpid,self ._varid,& no_fill,PyArray_DATA(fillval))
4663
+ _ensure_nc_success(ierr)
4664
+ return fillval
4666
4665
else :
4667
4666
# no default filling for non-primitive data types.
4668
4667
return None
You can’t perform that action at this time.
0 commit comments