Skip to content

Commit d1b61b9

Browse files
Fix so that example_fields returns FieldList not list
1 parent a603bc6 commit d1b61b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cf/examplefield.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import cfdm
22

33
from .cfimplementation import implementation
4+
from .fieldlist import FieldList
45

56
_implementation = implementation()
67

@@ -13,7 +14,7 @@ def example_field(n, _implementation=_implementation):
1314

1415

1516
def example_fields(*n, _func=example_field):
16-
return cfdm.example_fields(*n, _func=_func)
17+
return FieldList(cfdm.example_fields(*n, _func=_func))
1718

1819

1920
example_fields.__doc__ = cfdm.example_fields.__doc__.replace("cfdm.", "cf.")

0 commit comments

Comments
 (0)