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

Closed
sadielbartholomew opened this issue Feb 27, 2024 · 0 comments · Fixed by #780
Closed

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

sadielbartholomew opened this issue Feb 27, 2024 · 0 comments · Fixed by #780
Assignees
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'>
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

Successfully merging a pull request may close this issue.

1 participant