File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2570,7 +2570,9 @@ strings.
2570
2570
raise IndexError (' %s not found in %s ' % (lastname,group.path))
2571
2571
2572
2572
def __iter__ (self ):
2573
- raise TypeError (" Dataset is not iterable." )
2573
+ raise TypeError (
2574
+ " Dataset is not iterable. Consider iterating on Dataset.variables."
2575
+ )
2574
2576
2575
2577
def __contains__ (self , key ):
2576
2578
raise TypeError (
@@ -4050,7 +4052,7 @@ behavior is similar to Fortran or Matlab, but different than numpy.
4050
4052
If fill_value is set to `False`, then the variable is not pre-filled.
4051
4053
The default netCDF fill values can be found in the dictionary `netCDF4.default_fillvals`.
4052
4054
If not set, the default fill value will be used but no `_FillValue` attribute will be created
4053
- (this is the default behavior of the netcdf-c library). If you want to use the
4055
+ (this is the default behavior of the netcdf-c library). If you want to use the
4054
4056
default fill value, but have the `_FillValue` attribute set, use
4055
4057
`fill_value='default'` (note - this only works for primitive data types). `Variable.get_fill_value`
4056
4058
can be used to retrieve the fill value, even if the `_FillValue` attribute is not set.
You can’t perform that action at this time.
0 commit comments