Skip to content

Commit

Permalink
fix(gfs-etl): Better debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
devsjc committed Jun 12, 2024
1 parent e521ed3 commit fbef2dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion containers/gfs/download_combine_gfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def convert_file(file: str, outfolder: str) -> str | None:
Storing the dile and passing that instead of an xaray dataset object saves memory.
"""
log.debug(f"Converting {file} to zarr")
# Convert the file
try:
ds: list[xr.Dataset] = cfgrib.open_datasets(
Expand Down Expand Up @@ -202,7 +203,6 @@ def run(path: str, config: Config, date: dt.date, run: str) -> str:
dataset_paths = [dp for dp in dataset_paths if dp is not None]
else:
for file in run_files:
log.debug(f"Converting {file}")
ds_path = convert_file(file=file, outfolder=path + "/.work")
if ds_path is not None:
dataset_paths.append(ds_path)
Expand Down

0 comments on commit fbef2dc

Please sign in to comment.