Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jswhit committed Oct 20, 2024
1 parent 821c740 commit 1668b99
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/netCDF4/_netCDF4.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -4654,12 +4654,17 @@ pre-filled)."""
try:
fillval = self._FillValue
except AttributeError:
# _FillValue attribute not set, use default _FillValue
# for primite datatypes.
if self._isprimitive:
# _FillValue attribute not set, see if we can retrieve _FillValue.
# for primitive data types.
if self._isprimitive
return np.array(default_fillvals[self.dtype.str[1:]],self.dtype)
#fillval = np.array(default_fillvals[self.dtype.str[1:]],self.dtype)
#with nogil:
# ierr=nc_inq_var_fill(self._grpid,self._varid,&no_fill,fillval)
#_ensure_nc_success(ierr)
#return fillval
else:
# no default filling for non-primitive datatypes.
# no default filling for non-primitive data types.
return None

def ncattrs(self):
Expand Down

0 comments on commit 1668b99

Please sign in to comment.