Skip to content

Error when writing to disk coordinates with a computed_standard_name #253

@davidhassell

Description

@davidhassell

When writing to disk coordinates with a computed_standard_name property, the following occurs:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/n02/n02/dch/cf/lib/python3.8/site-packages/cfdm/decorators.py", line 171, in verbose_override_wrapper
    return method_with_verbose_kwarg(*args, **kwargs)
  File "/home/n02/n02/dch/cf/lib/python3.8/site-packages/cf/read_write/write.py", line 722, in write
    netcdf.write(
  File "/home/n02/n02/dch/cf/lib/python3.8/site-packages/cfdm/decorators.py", line 171, in verbose_override_wrapper
    return method_with_verbose_kwarg(*args, **kwargs)
  File "/home/n02/n02/dch/cf/lib/python3.8/site-packages/cfdm/read_write/netcdf/netcdfwrite.py", line 4820, in write
    self._file_io_iteration(
  File "/home/n02/n02/dch/cf/lib/python3.8/site-packages/cfdm/read_write/netcdf/netcdfwrite.py", line 5089, in _file_io_iteration
    self._write_field_or_domain(f)
  File "/home/n02/n02/dch/cf/lib/python3.8/site-packages/cfdm/read_write/netcdf/netcdfwrite.py", line 3241, in _write_field_or_domain
    self.implementation.set_property(
AttributeError: 'CFImplementation' object has no attribute 'set_property'
>>> import cfdm
>>> cfdm.environment(paths=False)
Platform: Linux-5.15.0-67-generic-x86_64-with-glibc2.35
HDF5 library: 1.12.2
netcdf library: 4.8.1
Python: 3.10.8
netCDF4: 1.6.2
numpy: 1.22.2
cfdm.core: 1.10.1.0
cftime: 1.6.2
netcdf_flattener: 1.2.0
cfdm: 1.10.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdataset writeRelating to writing datasets

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions