Skip to content

Commit

Permalink
Add TODO for filename regex
Browse files Browse the repository at this point in the history
  • Loading branch information
blimlim committed Sep 20, 2024
1 parent 797a824 commit b014029
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions umpost/conversion_driver_esm1p5.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ def get_nc_filename(fields_file_name, date=None):
if date is None:
return f"{fields_file_name}.nc"

# TODO: Use regex to extract stem and unit from filename to improve
# clarity, and for better handling of unexpected filenames.
stem = fields_file_name[0:FF_UNIT_INDEX + 1]
unit = fields_file_name[FF_UNIT_INDEX]

Expand Down

0 comments on commit b014029

Please sign in to comment.