cli¶
lab.connectome.cli
¶
The lab connectome commands: status, fetch, and check.
This module and lab.cli are the only ones that define commands.
check_command()
¶
Check that this machine can query FlyWire CAVE.
Reads the materialization versions and table names, samples the tables every fetch reads, and looks the census LC16 ids up on the server. Exits 1, with how to save a token, on a login error.
Source code in lab/connectome/cli.py
fetch_command(names=None, yes=False, workers=4)
¶
Fetch the datasets that are missing or unreadable.
On a terminal it asks before each fetch. Elsewhere it needs --yes, so a script never waits for an answer. A dataset named on the command line is fetched even if it is ok.
Source code in lab/connectome/cli.py
human_size(size)
¶
Format a byte count as a short string.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
size
|
int or None
|
Bytes; |
required |
Returns:
| Type | Description |
|---|---|
str
|
Such as |
Examples:
Source code in lab/connectome/cli.py
interactive()
¶
say(text)
¶
show_status()
¶
Print the status of every dataset as a table.