Skip to content

Commit

Permalink
Add logging to cli timeseries
Browse files Browse the repository at this point in the history
  • Loading branch information
scottstanie committed Oct 29, 2024
1 parent e8e1ff0 commit 8bba457
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dolphin/_cli_timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from pathlib import Path
from typing import TYPE_CHECKING, Any

from dolphin._log import setup_logging
from dolphin.timeseries import InversionMethod
from dolphin.workflows import CallFunc

Expand Down Expand Up @@ -177,13 +178,15 @@ def _run_timeseries(*args, **kwargs):
"""
from dolphin import timeseries

setup_logging()
return timeseries.run(*args, **kwargs)


def main(args=None):
"""Get the command line arguments for timeseries inversion."""
from dolphin import timeseries

setup_logging()
parser = get_parser()
parsed_args = parser.parse_args(args)

Expand Down

0 comments on commit 8bba457

Please sign in to comment.