From 941c8a5cfa453619e4e5f79c2d28497165347f86 Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Thu, 10 Oct 2024 18:22:17 +0100 Subject: [PATCH] minor linting fixes --- bash/combine-iterative-runs.sh | 4 ++-- bash/remove-extra-cropfiles.py | 2 +- bash/run-pipeline-iteratively.sh | 2 +- python/clim_recal/resample.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bash/combine-iterative-runs.sh b/bash/combine-iterative-runs.sh index 4e859784..fcd39748 100755 --- a/bash/combine-iterative-runs.sh +++ b/bash/combine-iterative-runs.sh @@ -3,10 +3,10 @@ # Run this script from the root of the `group_run_*` directory # /datadrive/clim-recal-results/group_run_2024-09-26-15-11 -# Manaually add in 1981 data from +# Manaually add in 1981 data from # /datadrive/clim-recal-results/group_run_2024-09-30-16-04/run_24-09-30_16-07 -# Manaually add in 1982 data from +# Manaually add in 1982 data from # /datadrive/clim-recal-results/group_run_2024-10-07-12-31/run_24-10-07_12-37 diff --git a/bash/remove-extra-cropfiles.py b/bash/remove-extra-cropfiles.py index 5cb17614..ec34b50f 100644 --- a/bash/remove-extra-cropfiles.py +++ b/bash/remove-extra-cropfiles.py @@ -1,6 +1,6 @@ -import sys import pathlib import re +import sys # get input dir root_dir = sys.argv[1] diff --git a/bash/run-pipeline-iteratively.sh b/bash/run-pipeline-iteratively.sh index a18ae12e..72523435 100755 --- a/bash/run-pipeline-iteratively.sh +++ b/bash/run-pipeline-iteratively.sh @@ -38,7 +38,7 @@ cpm_end_year=1982 for year in $(seq $cpm_start_year $cpm_end_year); do echo "Running for year={$year}" - # Including `1201` in the filter, guarantees that we only match on the + # Including `1201` in the filter, guarantees that we only match on the # start year for each file, not the end year. cpm_filter="*_${year}1201-*.nc" # cpm_filter="*_198?1201-*.nc" diff --git a/python/clim_recal/resample.py b/python/clim_recal/resample.py index 4618cb21..99878f0e 100644 --- a/python/clim_recal/resample.py +++ b/python/clim_recal/resample.py @@ -62,7 +62,7 @@ # RESAMPLING_OUTPUT_PATH: Final[PathLike] = ( # CLIMATE_DATA_MOUNT_PATH / "CPM-365/andys-two-gdal-step-approach/resample" -#) +# ) RESAMPLING_OUTPUT_PATH: Final[PathLike] = "/datadrive/clim-recal-results/cropped" RAW_HADS_PATH: Final[PathLike] = CLIMATE_DATA_MOUNT_PATH / "Raw/HadsUKgrid" RAW_CPM_PATH: Final[PathLike] = CLIMATE_DATA_MOUNT_PATH / "Raw/UKCP2.2"