spatialvi.settings#
- spatialvi.settings = <spatialvi._settings.SpatialviConfig object>#
Config manager for spatialvi.
Examples
To set the seed
>>> spatialvi.settings.seed = 1
To set the batch size for functions like SCVIVA.get_latent_representation
>>> spatialvi.settings.batch_size = 1024
To set the progress bar style, choose one of “rich”, “tqdm”
>>> spatialvi.settings.progress_bar_style = "rich"
To set the verbosity
>>> import logging >>> spatialvi.settings.verbosity = logging.INFO
To set the number of threads, PyTorch will use
>>> spatialvi.settings.num_threads = 2