-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrun_debug.py
More file actions
24 lines (19 loc) · 904 Bytes
/
Copy pathrun_debug.py
File metadata and controls
24 lines (19 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
"""
Convenience script for running the model in a debugger (i.e., when you don't want
to run the model from the command line).
Here, you can pass config_path, data_path, and output_path directly rather than as
command line arguments.
The paths here are for the default locations, but you can change these if you want to use
different files or directories.
"""
from pathlib import Path
from fetch3.__main__ import run
# These paths point to the default locations
parent_path = Path(__file__).resolve().parent
# config_path = parent_path / "config_files" / "model_config.yml"
data_path = parent_path / "data"
output_path = parent_path / "output"
# If you want to use different files or directories, you can change these paths, for example:
config_path = Path("/Users/jmissik/Desktop/repos/fetch3_nhl/config_files/opt_config_ms.yml")
species = 'maple'
run(species, config_path, data_path, output_path)