Skip to content

Launch Synthetic Recordings on Compute Cloud

flyvis_cli.analysis.record

Script to run synthetic recordings for each model of an ensemble.

run_synthetic_recordings
run_synthetic_recordings(args, kwargs)

Launch synthetic recording job for each model of an ensemble.

Parameters:

Name Type Description Default
args Namespace

Command-line arguments.

required
kwargs List[str]

Additional keyword arguments as a list of strings.

required
Source code in flyvis_cli/analysis/record.py
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
def run_synthetic_recordings(args: argparse.Namespace, kwargs: List[str]) -> None:
    """
    Launch synthetic recording job for each model of an ensemble.

    Args:
        args: Command-line arguments.
        kwargs: Additional keyword arguments as a list of strings.
    """
    launch_range(
        args.start,
        args.end,
        args.ensemble_id,
        args.task_name,
        args.nP,
        args.gpu,
        args.q,
        args.synthetic_recordings_script,
        args.dry,
        kwargs,
    )
usage:
flyvis record [-h] [...] --ensemble_id ENSEMBLE_ID --task_name TASK_NAME [options] [synthetic_recordings_script_args...]
       or
record.py [-h] [...] --ensemble_id ENSEMBLE_ID --task_name TASK_NAME [options] [synthetic_recordings_script_args...]

For a full list of options and default arguments, run: flyvis synthetic-recordings-single --help

Run synthetic recordings for each model of an ensemble on the compute cloud.

options:
  -h, --help            show this help message and exit
  --start START         Start id of ensemble.
  --end END             End id of ensemble.
  --nP NP               Number of processors.
  --gpu GPU             Number of GPUs.
  --q Q                 Queue.
  --ensemble_id ENSEMBLE_ID
                        Id of the ensemble, e.g. 0045.
  --task_name TASK_NAME
                        Name given to the task, e.g., flow.
  --synthetic_recordings_script SYNTHETIC_RECORDINGS_SCRIPT
                        Script to run for synthetic recordings. Default: /grou
                        ps/turaga/home/lappalainenj/FlyVis/private/flyvision/f
                        lyvis_cli/analysis/synthetic_recordings_single.py
  --dry                 Perform a dry run without actually launching jobs.