Skip to content

Commit 1471aeb

Browse files
authored
Merge branch 'main' into introduce-minimum-tolerance-value
2 parents a4acee2 + 488d019 commit 1471aeb

File tree

9 files changed

+27
-27
lines changed

9 files changed

+27
-27
lines changed

engine/init.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import click
1515
from jinja2 import Environment, FileSystemLoader, StrictUndefined
1616

17-
from util.click_util import CommaSeperatedInts, cli_help
17+
from util.click_util import CommaSeparatedInts, cli_help
1818
from util.log_handler import logger
1919

2020

@@ -44,7 +44,7 @@
4444
)
4545
@click.option(
4646
"--member-ids",
47-
type=CommaSeperatedInts(),
47+
type=CommaSeparatedInts(),
4848
default="1,2,3,4,5,6,7,8,9,10",
4949
help=cli_help["member_ids"],
5050
)

engine/perturb.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import click
1515
import numpy as np
1616

17-
from util.click_util import CommaSeperatedInts, CommaSeperatedStrings, cli_help
17+
from util.click_util import CommaSeparatedInts, CommaSeparatedStrings, cli_help
1818
from util.log_handler import logger
1919
from util.netcdf_io import nc4_get_copy
2020
from util.utils import get_seed_from_member_id, prepend_type_to_member_id
@@ -41,12 +41,12 @@ def perturb_array(array, seed, perturb_amplitude):
4141
)
4242
@click.option(
4343
"--files",
44-
type=CommaSeperatedStrings(),
44+
type=CommaSeparatedStrings(),
4545
help=cli_help["files"],
4646
)
4747
@click.option(
4848
"--member-ids",
49-
type=CommaSeperatedInts(),
49+
type=CommaSeparatedInts(),
5050
default="1,2,3,4,5,6,7,8,9,10",
5151
help=cli_help["member_ids"],
5252
)
@@ -58,7 +58,7 @@ def perturb_array(array, seed, perturb_amplitude):
5858
)
5959
@click.option(
6060
"--variable-names",
61-
type=CommaSeperatedStrings(),
61+
type=CommaSeparatedStrings(),
6262
help=cli_help["variable_names"],
6363
)
6464
@click.option(

engine/run_ensemble.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
import click
1717

18-
from util.click_util import CommaSeperatedInts, CommaSeperatedStrings, cli_help
18+
from util.click_util import CommaSeparatedInts, CommaSeparatedStrings, cli_help
1919
from util.log_handler import logger
2020
from util.utils import get_seed_from_member_id, prepend_type_to_member_id
2121

@@ -165,7 +165,7 @@ def check_job_returncode(job):
165165
@click.option(
166166
"--member-ids",
167167
default="1,2,3,4,5,6,7,8,9,10",
168-
type=CommaSeperatedInts(),
168+
type=CommaSeparatedInts(),
169169
help=cli_help["member_ids"],
170170
)
171171
@click.option(
@@ -186,17 +186,17 @@ def check_job_returncode(job):
186186
)
187187
@click.option(
188188
"--lhs",
189-
type=CommaSeperatedStrings(),
189+
type=CommaSeparatedStrings(),
190190
help=cli_help["lhs"],
191191
)
192192
@click.option(
193193
"--rhs-new",
194-
type=CommaSeperatedStrings(),
194+
type=CommaSeparatedStrings(),
195195
help=cli_help["rhs_new"],
196196
)
197197
@click.option(
198198
"--rhs-old",
199-
type=CommaSeperatedStrings(),
199+
type=CommaSeparatedStrings(),
200200
help=cli_help["rhs_old"],
201201
)
202202
def run_ensemble(

engine/stats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import click
1414

15-
from util.click_util import CommaSeperatedInts, cli_help
15+
from util.click_util import CommaSeparatedInts, cli_help
1616
from util.dataframe_ops import df_from_file_ids
1717
from util.log_handler import logger
1818
from util.utils import prepend_type_to_member_id
@@ -53,7 +53,7 @@ def create_stats_dataframe(input_dir, file_id, stats_file_name, file_specificati
5353
)
5454
@click.option(
5555
"--member-ids",
56-
type=CommaSeperatedInts(),
56+
type=CommaSeparatedInts(),
5757
default="1,2,3,4,5,6,7,8,9,10",
5858
help=cli_help["member_ids"],
5959
)

engine/tolerance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import click
1212
import pandas as pd
1313

14-
from util.click_util import CommaSeperatedInts, cli_help
14+
from util.click_util import CommaSeparatedInts, cli_help
1515
from util.dataframe_ops import (
1616
compute_rel_diff_dataframe,
1717
force_monotonic,
@@ -31,7 +31,7 @@
3131
)
3232
@click.option(
3333
"--member-ids",
34-
type=CommaSeperatedInts(),
34+
type=CommaSeparatedInts(),
3535
default="1,2,3,4,5,6,7,8,9,10",
3636
help=cli_help["member_ids"],
3737
)

util/click_util.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def load_defaults(sections):
5252
return tmp
5353

5454

55-
class CommaSeperatedInts(click.ParamType):
55+
class CommaSeparatedInts(click.ParamType):
5656
"""
5757
A custom Click parameter type for handling comma-separated integers.
5858
@@ -62,7 +62,7 @@ class CommaSeperatedInts(click.ParamType):
6262
provided as a single comma-separated string.
6363
"""
6464

65-
name = "CommaSeperatedInts"
65+
name = "CommaSeparatedInts"
6666

6767
def convert(self, value, param, ctx):
6868
if isinstance(value, list):
@@ -72,7 +72,7 @@ def convert(self, value, param, ctx):
7272
return [int(e) for e in filter(lambda x: x != "", value.split(","))]
7373

7474

75-
class CommaSeperatedStrings(click.ParamType):
75+
class CommaSeparatedStrings(click.ParamType):
7676
"""
7777
A custom Click parameter type for handling comma-separated strings.
7878
@@ -82,7 +82,7 @@ class CommaSeperatedStrings(click.ParamType):
8282
provided as a single comma-separated string.
8383
"""
8484

85-
name = "CommaSeperatedStrings"
85+
name = "CommaSeparatedStrings"
8686

8787
def convert(self, value, param, ctx):
8888
if isinstance(value, list):

visualize/cdo_table_reader.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import click
77
import pandas as pd
88

9-
from util.click_util import CommaSeperatedInts, CommaSeperatedStrings, cli_help
9+
from util.click_util import CommaSeparatedInts, CommaSeparatedStrings, cli_help
1010
from util.dataframe_ops import parse_probtest_csv
1111

1212
pd.set_option("expand_frame_repr", False)
@@ -15,17 +15,17 @@
1515
@click.command()
1616
@click.option(
1717
"--variables",
18-
type=CommaSeperatedStrings(),
18+
type=CommaSeparatedStrings(),
1919
help=cli_help["variables"],
2020
)
2121
@click.option(
2222
"--file-id",
23-
type=CommaSeperatedStrings(),
23+
type=CommaSeparatedStrings(),
2424
help=cli_help["file_id"],
2525
)
2626
@click.option(
2727
"--times",
28-
type=CommaSeperatedInts(),
28+
type=CommaSeparatedInts(),
2929
help=cli_help["times"],
3030
)
3131
@click.option(

visualize/performance_meta_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import pandas as pd
1616
from matplotlib import pyplot as plt
1717

18-
from util.click_util import CommaSeperatedStrings, cli_help
18+
from util.click_util import CommaSeparatedStrings, cli_help
1919
from util.constants import DATETIME_FORMAT
2020
from util.log_handler import logger
2121
from util.tree import TimingTree
@@ -67,7 +67,7 @@ def plot_meta_data_timer(
6767
)
6868
@click.option(
6969
"--timing-names",
70-
type=CommaSeperatedStrings(),
70+
type=CommaSeparatedStrings(),
7171
help=cli_help["timing_names"],
7272
)
7373
@click.option(

visualize/performance_plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import numpy as np
2020
from matplotlib import pyplot as plt
2121

22-
from util.click_util import CommaSeperatedStrings, cli_help
22+
from util.click_util import CommaSeparatedStrings, cli_help
2323
from util.constants import DATETIME_FORMAT
2424
from util.log_handler import logger
2525
from util.tree import TimingTree
@@ -63,7 +63,7 @@ def colour_revs(times, revs, ax):
6363
)
6464
@click.option(
6565
"--timing-names",
66-
type=CommaSeperatedStrings(),
66+
type=CommaSeparatedStrings(),
6767
help=cli_help["timing_names"],
6868
)
6969
@click.option(

0 commit comments

Comments
 (0)