Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhassell committed Aug 29, 2023
1 parent 176d1e2 commit 14f77a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cfdm/read_write/netcdf/netcdfwrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,9 +693,7 @@ def _write_dimension_coordinate(self, f, key, coord, ncdim, coordinates):
ncdim = ncvar

# Create a new dimension
unlimited = self._nc_is_unlimited_axis(f, axis)
# unlimited = self.implementation.nc_is_unlimited_axis(f, axis)

unlimited = self._unlimited(f, axis)
self._write_dimension(ncdim, f, axis, unlimited=unlimited)

ncdimensions = self._netcdf_dimensions(f, key, coord)
Expand Down Expand Up @@ -3548,7 +3546,7 @@ def _write_field_or_domain(

ncdim = self._netcdf_name(ncdim)

unlimited = self._nc_is_unlimited_axis(f, axis)
unlimited = self._unlimited(f, axis)
self._write_dimension(
ncdim, f, axis, unlimited=unlimited
)
Expand Down Expand Up @@ -4115,7 +4113,7 @@ def _create_vertical_datum(self, ref, coord_key):

g["grid_mapping_refs"].append(new_grid_mapping)

def _nc_is_unlimited_axis(self, field, axis):
def _unlimited(self, field, axis):
"""Whether an axis is unlimited.
.. versionadded:: (cfdm) 1.7.0
Expand All @@ -4125,6 +4123,8 @@ def _nc_is_unlimited_axis(self, field, axis):
field: `Field` or `Domain`
axis: `str`
Domain axis construct identifier,
e.g. ``'domainaxis1'``.
:Returns:
Expand Down

0 comments on commit 14f77a9

Please sign in to comment.