Skip to content

Commit

Permalink
Modify 'run' function to actually run the model
Browse files Browse the repository at this point in the history
  • Loading branch information
dalonsoa committed Nov 14, 2023
1 parent bc4ebc8 commit b691908
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wsimod/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import pandas as pd

from wsimod.orchestration.model import Model
from wsimod.validation import validate_io_args
from wsimod.validation import load_data_into_settings, validate_io_args


def create_parser() -> ArgumentParser:
Expand Down Expand Up @@ -57,4 +57,6 @@ def run_model(settings: dict[str, Any]) -> None:
def run() -> None:
"""Main entry point of the application."""
args = vars(create_parser().parse_args())
print(validate_io_args(**args))
settings = validate_io_args(**args)
loaded_settings = load_data_into_settings(settings, settings["inputs"])
run_model(loaded_settings)

0 comments on commit b691908

Please sign in to comment.