Skip to content

Boolean arguments in plot input cannot be used

The following options are given:

yarrtist plots plot-scan [OPTIONS]                                                                                 
                                                                                                                           
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ *  --connectivity-files  -c      PATH                        path to one or more connectivity file. [default: None]     │
│                                                              [required]                                                 │
│ *  --scan-directory      -s      PATH                        path to the input YARR scan directory. [default: None]     │
│                                                              [required]                                                 │
│    --per-chip                                                divide summary per chip.                                   │
│    --config-summary                                          plot config summary in YARR scan. [default: True]          │
│    --verbosity           -v      [DEBUG|INFO|WARNING|ERROR]  Log level [options: DEBUG, INFO (default) WARNING, ERROR]  │
│                                                              [default: INFO]                                            │
│    --help                -h                                  Show this message and exit.                                │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

However, when trying to toggle per-chip or config-summary, there is an error about an unexpected additional argument:

(venv) [pixadmin@kai Yarr]$ yarrtist plots plot-scan -c configs/connectivity/example_itkpixv2_setup.json -s data/000002_std_digitalscan --per-chip False

╭─ Error ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Got unexpected extra argument (False)                                                                                   │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

(venv) [pixadmin@kai Yarr]$ yarrtist plots plot-scan -c configs/connectivity/example_itkpixv2_setup.json -s data/000002_std_digitalscan --config-summary False
Usage: yarrtist plots plot-scan [OPTIONS]
Try 'yarrtist plots plot-scan -h' for help.
╭─ Error ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Got unexpected extra argument (False)                                                                                   │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Edited by Giordon Holtsberg Stark