Skip to content

Commit 1668b99

Browse files
author
Jeff Whitaker
committed
update
1 parent 821c740 commit 1668b99

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

‎src/netCDF4/_netCDF4.pyx‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4654,12 +4654,17 @@ pre-filled)."""
46544654
try:
46554655
fillval = self._FillValue
46564656
except AttributeError:
4657-
# _FillValue attribute not set, use default _FillValue
4658-
# for primite datatypes.
4659-
if self._isprimitive:
4657+
# _FillValue attribute not set, see if we can retrieve _FillValue.
4658+
# for primitive data types.
4659+
if self._isprimitive
46604660
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,fillval)
4664+
#_ensure_nc_success(ierr)
4665+
#return fillval
46614666
else:
4662-
# no default filling for non-primitive datatypes.
4667+
# no default filling for non-primitive data types.
46634668
return None
46644669

46654670
def ncattrs(self):

0 commit comments

Comments
 (0)