cf-python icon indicating copy to clipboard operation
cf-python copied to clipboard

`example_fields()` should return a `Fieldlist` not a regular list

Open sadielbartholomew opened this issue 2 years ago • 0 comments

Unlike cfdm which has no concept of a Fieldlist, cf-python should return fields contained in a FieldList object rather than a regular Python list, which it returns at the moment:

>>> type(cfdm.example_fields())  # expect a list
<class 'list'>
>>> type(cf.example_fields())  # expect a FieldList
<class 'list'>

sadielbartholomew avatar Feb 27 '24 14:02 sadielbartholomew