Data downloading and reading functions
vispy.util.fetching.
ProgressBar
Bases: object
object
Class for generating a command-line progressbar
Maximum value of process (e.g. number of samples to process, bytes to download, etc.).
Initial value of process, useful when resuming process from a specific value, defaults to 0.
Message to include at end of progress bar.
Number of characters to use for progress bar (be sure to save some room for the message and % complete as well).
Character in the progress bar that indicates the portion completed.
Show a spinner. Useful for long-running processes that may not increment the progress bar very often. This provides the user with feedback that the progress has not stalled.
spinner_symbols
template
update
Update progressbar with current value of process
Current value of process. Should be <= max_value (but this is not enforced). The percent of the progressbar will be computed as (cur_value / max_value) * 100
Message to display to the right of the progressbar. If None, the last message provided will be used. To clear the current message, pass a null string, ‘’.
update_with_increment_value
Update progressbar with the value of the increment instead of the current value of process as in update()
Value of the increment of process. The percent of the progressbar will be computed as (self.cur_value + increment_value / max_value) * 100
load_data_file
Get a standard vispy demo data file
The filename on the remote demo-data repository to download, e.g. 'molecular_viewer/micelle.npy'. These correspond to paths on https://github.com/vispy/demo-data/.
demo-data
'molecular_viewer/micelle.npy'
https://github.com/vispy/demo-data/
Directory to use to save the file. By default, the vispy configuration directory is used.
If True, the file will be downloaded even if a local copy exists (and this copy will be overwritten). Can also be a YYYY-MM-DD date to ensure a file is up-to-date (modified date of a file on disk, if present, is checked).
The path to the file on the local system.
sizeof_fmt
Turn number of bytes into human-readable str