Command line interface for running body-eye-sync experiments non-interactively.
main(folder, force)
Run the body-eye-sync pipeline for the experiment in FOLDER.
Source code in src/body_eye_sync/cli.py
| @click.command()
@click.version_option(package_name="body-eye-sync", prog_name="body-eye-sync")
@click.argument(
"folder",
type=click.Path(exists=True, file_okay=False, path_type=Path),
)
@click.option(
"--force",
is_flag=True,
help="Re-run inputs whose output already exists, overwriting it.",
)
def main(folder, force):
"""Run the body-eye-sync pipeline for the experiment in FOLDER."""
logging.basicConfig(level=logging.INFO, format="%(message)s")
exp = Experiment.load(folder)
results = run_experiment(exp, force=force)
for input_id, path in results.items():
click.echo(f"{input_id}: {path}")
|