Skip to content

Commit

Permalink
Gobble up extra kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
ppinchuk committed Oct 2, 2023
1 parent 1b0e9f0 commit f1b652e
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion sup3r/bias/bias_calc_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def main(ctx, verbose):
@click.option('-v', '--verbose', is_flag=True,
help='Flag to turn on debug logging. Default is not verbose.')
@click.pass_context
def from_config(ctx, config_file, verbose=False):
def from_config(ctx, config_file, verbose=False, **__):
"""Run sup3r bias correction calculation from a config file."""
config = BaseCLI.from_config_preflight(ModuleName.BIAS_CALC, ctx,
config_file, verbose)
Expand Down
2 changes: 1 addition & 1 deletion sup3r/pipeline/forward_pass_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def main(ctx, verbose):
@click.option('-v', '--verbose', is_flag=True,
help='Flag to turn on debug logging. Default is not verbose.')
@click.pass_context
def from_config(ctx, config_file, verbose=False):
def from_config(ctx, config_file, verbose=False, **__):
"""Run sup3r forward pass from a config file."""

config = BaseCLI.from_config_preflight(ModuleName.FORWARD_PASS, ctx,
Expand Down
2 changes: 1 addition & 1 deletion sup3r/postprocessing/data_collect_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def main(ctx, verbose):
@click.option('-v', '--verbose', is_flag=True,
help='Flag to turn on debug logging. Default is not verbose.')
@click.pass_context
def from_config(ctx, config_file, verbose=False):
def from_config(ctx, config_file, verbose=False, **__):
"""Run sup3r data collection from a config file. If dset_split is True this
each feature will be collected into a separate file."""
config = BaseCLI.from_config_preflight(ModuleName.DATA_COLLECT, ctx,
Expand Down
2 changes: 1 addition & 1 deletion sup3r/preprocessing/data_extract_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def main(ctx, verbose):
@click.option('-v', '--verbose', is_flag=True,
help='Flag to turn on debug logging. Default is not verbose.')
@click.pass_context
def from_config(ctx, config_file, verbose=False):
def from_config(ctx, config_file, verbose=False, **__):
"""Run sup3r data extraction from a config file.
Parameters
Expand Down
2 changes: 1 addition & 1 deletion sup3r/qa/qa_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def main(ctx, verbose):
@click.option('-v', '--verbose', is_flag=True,
help='Flag to turn on debug logging. Default is not verbose.')
@click.pass_context
def from_config(ctx, config_file, verbose=False):
def from_config(ctx, config_file, verbose=False, **__):
"""Run the sup3r QA module from a config file."""
BaseCLI.from_config(ModuleName.QA, Sup3rQa, ctx, config_file, verbose)

Expand Down
2 changes: 1 addition & 1 deletion sup3r/qa/stats_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def main(ctx, verbose):
@click.option('-v', '--verbose', is_flag=True,
help='Flag to turn on debug logging. Default is not verbose.')
@click.pass_context
def from_config(ctx, config_file, verbose=False):
def from_config(ctx, config_file, verbose=False, **__):
"""Run the sup3r WindStats module from a config file."""
BaseCLI.from_config(ModuleName.STATS, Sup3rStatsMulti, ctx,
config_file, verbose)
Expand Down
2 changes: 1 addition & 1 deletion sup3r/qa/visual_qa_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def main(ctx, verbose):
@click.option('-v', '--verbose', is_flag=True,
help='Flag to turn on debug logging. Default is not verbose.')
@click.pass_context
def from_config(ctx, config_file, verbose=False):
def from_config(ctx, config_file, verbose=False, **__):
"""Run the sup3r visual QA module from a config file."""
BaseCLI.from_config(ModuleName.VISUAL_QA, Sup3rVisualQa, ctx, config_file,
verbose)
Expand Down
2 changes: 1 addition & 1 deletion sup3r/solar/solar_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def main(ctx, verbose):
@click.option('-v', '--verbose', is_flag=True,
help='Flag to turn on debug logging. Default is not verbose.')
@click.pass_context
def from_config(ctx, config_file, verbose=False):
def from_config(ctx, config_file, verbose=False, **__):
"""Run sup3r solar from a config file."""
config = BaseCLI.from_config_preflight(ModuleName.SOLAR, ctx, config_file,
verbose)
Expand Down
2 changes: 1 addition & 1 deletion sup3r/utilities/regridder_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def main(ctx, verbose):
@click.option('-v', '--verbose', is_flag=True,
help='Flag to turn on debug logging. Default is not verbose.')
@click.pass_context
def from_config(ctx, config_file, verbose=False):
def from_config(ctx, config_file, verbose=False, **__):
"""Run sup3r regrid from a config file."""

config = BaseCLI.from_config_preflight(ModuleName.REGRID, ctx,
Expand Down

0 comments on commit f1b652e

Please sign in to comment.