Skip to content

Commit

Permalink
more debugging output for postprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
henryaddison committed Sep 11, 2023
1 parent a36798f commit 574eccf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ml_downscaling_emulator/bin/postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def filter(
)
os.makedirs(filtered_samples_dirpath, exist_ok=False)

for sample_filepath in samples_glob(
samples_filepaths_to_filter = samples_glob(
samples_path(
workdir,
checkpoint=checkpoint,
Expand All @@ -53,7 +53,10 @@ def filter(
split=split,
ensemble_member=ensemble_member,
)
):
)

logger.info(f"Found for filtering: {samples_filepaths_to_filter}")
for sample_filepath in samples_filepaths_to_filter:
logger.info(f"Working on {sample_filepath}")
samples_ds = xr.open_dataset(sample_filepath)

Expand Down

0 comments on commit 574eccf

Please sign in to comment.