Skip to content

Commit

Permalink
Orchestrator: convert to class implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
rlxdev committed Jul 12, 2024
1 parent 9401ead commit 22ea201
Show file tree
Hide file tree
Showing 2 changed files with 375 additions and 353 deletions.
6 changes: 3 additions & 3 deletions scubagoggles/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
"""

import argparse
from scubagoggles.orchestrator import gws_products, start_automation
from scubagoggles.orchestrator import Orchestrator

def get_gws_args(parser):
"""
Adds the arguments for the GWS parser
:param parser: argparse object
"""
gws = gws_products()
gws = Orchestrator.gws_products()
gws_baselines = gws["gws_baselines"]

default_file_output_names = {
Expand Down Expand Up @@ -140,6 +140,6 @@ def dive():
args = parser.parse_args()

if args.scuba_cmd == 'gws':
start_automation(args)
Orchestrator(args).start_automation()
else:
raise Exception("Invalid subparser. Run scubagoggles -h to see a list of valid subparsers")
Loading

0 comments on commit 22ea201

Please sign in to comment.