Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example_fields() should return a Fieldlist not a regular list #725

Open
sadielbartholomew opened this issue Feb 27, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@sadielbartholomew
Copy link
Member

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 sadielbartholomew added the bug Something isn't working label Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant