Skip to content

Commit

Permalink
Move METplus tasks out of command line repository
Browse files Browse the repository at this point in the history
They don't really map that well onto a CLI usecase, and we forced it it would
be a very thin wrapper around run-metplus.py, which is probably not worth
having.

METplus based tasks should instead be run directly by whatever orchestration
layer sits above the CSET CLI.
  • Loading branch information
jfrost-mo committed Feb 27, 2023
1 parent 41a851b commit 78c53ce
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 1,198 deletions.
9 changes: 0 additions & 9 deletions src/CSET/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@ def main():
"recipe_file", type=Path, help="recipe file to execute"
)
parser_operators.set_defaults(func=run_operators)

# Run task
parser_task = subparsers.add_parser("task", help="run a MET task")
parser_task.set_defaults(func=run_task)

args = parser.parse_args()
# Logging verbosity
if args.verbose >= 2:
Expand All @@ -68,7 +63,3 @@ def run_operators(args):
from .operators._internal import execute_recipe

execute_recipe(args.recipe_file, args.input_file, args.output_file)


def run_task(args):
raise NotImplementedError
3 changes: 0 additions & 3 deletions src/CSET/tasks/demo_pointstat/.gitignore

This file was deleted.

150 changes: 0 additions & 150 deletions src/CSET/tasks/demo_pointstat/Pointstat_MET_UKV.conf

This file was deleted.

166 changes: 0 additions & 166 deletions src/CSET/tasks/demo_pointstat/Pointstat_METplus_UKV.conf

This file was deleted.

20 changes: 0 additions & 20 deletions src/CSET/tasks/demo_pointstat/Pointstat_UKV_Areas.conf

This file was deleted.

12 changes: 0 additions & 12 deletions src/CSET/tasks/demo_pointstat/README.md

This file was deleted.

Loading

0 comments on commit 78c53ce

Please # to comment.