Skip to content

Commit

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

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

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

Expand Down Expand Up @@ -3547,9 +3548,7 @@ def _write_field_or_domain(

ncdim = self._netcdf_name(ncdim)

unlimited = self.implementation.nc_is_unlimited_axis(
f, axis
)
unlimited = self._nc_is_unlimited_axis(f, axis)
self._write_dimension(
ncdim, f, axis, unlimited=unlimited
)
Expand Down Expand Up @@ -4116,14 +4115,14 @@ def _create_vertical_datum(self, ref, coord_key):

g["grid_mapping_refs"].append(new_grid_mapping)

def _unlimited(self, field, axis):
def _nc_is_unlimited_axis(self, field, axis):
"""Whether an axis is unlimited.
.. versionadded:: (cfdm) 1.7.0
:Parameters:
field: Field construct
field: `Field` or `Domain`
axis: `str`
Expand Down

0 comments on commit 176d1e2

Please sign in to comment.