Skip to content

Commit

Permalink
fix for issue #972 (masked array not returned when auto_fill off)
Browse files Browse the repository at this point in the history
  • Loading branch information
jswhit committed Sep 19, 2019
1 parent 4e5218f commit 1980838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netCDF4/_netCDF4.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -4581,7 +4581,7 @@ rename a `netCDF4.Variable` attribute named `oldname` to `newname`."""
# type, signed or unsigned, because the byte ranges are too
# small to assume one of the values should appear as a missing
# value unless a _FillValue attribute is set explicitly."
if no_fill != 1 and self.dtype.str[1:] not in ['u1','i1']:
if no_fill != 1 or self.dtype.str[1:] not in ['u1','i1']:
fillval = numpy.array(default_fillvals[self.dtype.str[1:]],self.dtype)
has_fillval = data == fillval
# if data is an array scalar, has_fillval will be a boolean.
Expand Down

0 comments on commit 1980838

Please # to comment.