Skip to content

Commit d2be5ca

Browse files
committed
Fix pre-commits
1 parent 61b871e commit d2be5ca

File tree

7 files changed

+15
-7
lines changed

7 files changed

+15
-7
lines changed

resources/inference/configs/forecaster.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ allow_nans: true
66

77
output:
88
tee:
9-
outputs:
9+
outputs:
1010
- extract_lam:
1111
output:
1212
assign_mask:

resources/report/plotting/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# This is a copy of the ncl colortables developed in the cosmolib
2-
# SRC: https://github.com/MeteoSwiss-APN/mch-ncl/tree/master/cosmolib/ct
2+
# SRC: https://github.com/MeteoSwiss-APN/mch-ncl/tree/master/cosmolib/ct

resources/report/plotting/RH_6lev.ct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
206 254 154
99
120 240 116
1010
55 202 51
11-
54 177 52
11+
54 177 52

resources/report/plotting/t2m_29lev.ct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
188 75 0
3232
171 0 56
3333
128 0 0
34-
163 112 255
34+
163 112 255

resources/report/plotting/uv_17lev.ct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
99 112 247
2121
127 150 255
2222
142 178 255
23-
181 201 255
23+
181 201 255

workflow/rules/plot.smk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55

66
include: "common.smk"
77

8+
89
import pandas as pd
910

11+
1012
rule plot_forecast_frame:
1113
input:
1214
script="workflow/scripts/plot_forecast_frame.mo.py",

workflow/scripts/plot_forecast_frame.mo.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ def _(ArgumentParser, Path):
4343

4444
parser = ArgumentParser()
4545

46-
parser.add_argument("--input", type=str, default=None, help="Directory to grib data")
46+
parser.add_argument(
47+
"--input", type=str, default=None, help="Directory to grib data"
48+
)
4749
parser.add_argument("--date", type=str, default=None, help="reference datetime")
4850
parser.add_argument("--outfn", type=str, help="output filename")
4951
parser.add_argument("--leadtime", type=str, help="leadtime")
@@ -56,7 +58,11 @@ def _(ArgumentParser, Path):
5658
outfn = Path(args.outfn)
5759
leadtime = int(args.leadtime)
5860
param = args.param
59-
region = None if (args.region is None or str(args.region).lower() in {"none", "", "null"}) else args.region
61+
region = (
62+
None
63+
if (args.region is None or str(args.region).lower() in {"none", "", "null"})
64+
else args.region
65+
)
6066
projection = args.projection
6167
return args, leadtime, outfn, param, projection, raw_dir, region
6268

0 commit comments

Comments
 (0)