Skip to content

Commit

Permalink
Update docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
teddygroves committed Oct 19, 2023
1 parent 5ec4feb commit 106fcf5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions maud/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,12 +514,12 @@ def do_variational(data_path, output_dir):
type=click.Path(exists=True, dir_okay=True, file_okay=False),
)
def pathfinder_command(data_path, output_dir):
"""Generate pathfinder samples given a user input directory."""
"""Generate draws using the pathfinder algorithm."""
click.echo(do_pathfinder(data_path, output_dir))


def do_pathfinder(data_path, output_dir):
"""Generate pathfinder samples given a user input directory."""
"""Generate draws using the pathfinder algorithm."""
mi = load_maud_input(data_path)
now = datetime.now().strftime("%Y%m%d%H%M%S")
output_name = f"maud_output_pf-{mi.config.name}-{now}"
Expand All @@ -542,12 +542,12 @@ def do_pathfinder(data_path, output_dir):
type=click.Path(exists=True, dir_okay=True, file_okay=False),
)
def laplace_command(data_path, output_dir):
"""Do Laplace approximation."""
"""Generate approximate posterior draws using the Laplace method."""
click.echo(do_laplace(data_path, output_dir))


def do_laplace(data_path, output_dir):
"""Do Laplace approximation."""
"""Generate approximate posterior draws using the Laplace method."""
mi = load_maud_input(data_path=data_path)
now = datetime.now().strftime("%Y%m%d%H%M%S")
output_name = f"maud_output_opt-{mi.config.name}-{now}"
Expand Down

0 comments on commit 106fcf5

Please sign in to comment.