Skip to content

Commit ccce9f9

Browse files
authored
Update um_fields_subset.py
fixed the comment for append_fields
1 parent ef361d8 commit ccce9f9

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

src/um_fields_subset.py

+3-12
Original file line numberDiff line numberDiff line change
@@ -215,28 +215,19 @@ def append_fields(outfile, filtered_fields):
215215
216216
Parameters
217217
----------
218-
input_file : mule.DumpFile
219-
The input UM file containing the fields to be copied.
220-
221218
outfile : mule.DumpFile
222219
The output UM file to which the selected fields will be copied.
223220
224-
prognostic : bool
225-
If True, only prognostic fields will be copied.
226-
227-
include_list : list of int
228-
A list of STASH item codes to include. Only these fields will be copied to the output file.
229-
230-
exclude_list : list of int
231-
A list of STASH item codes to exclude. Fields with these item codes will not be copied to the output file.
221+
filtered_fields : list of int
222+
A list of STASH item codes to save to the new file.
232223
233224
Returns
234225
-------
235226
None
236227
This function modifies the output_file in place and does not return any value.
237228
"""
238229
for field in filtered_fields:
239-
# Ad to the outfile fields
230+
# Add to the outfile fields
240231
outfile.fields.append(field.copy())
241232

242233
def main():

0 commit comments

Comments
 (0)