anndata.settings.reset#
- settings.reset(*names)[source]#
Reset passed settings to their default values.
Can be used as a context manager to make the resets temporary. On
__enter__, the context manager returns the settings that have been changed.- Parameters:
- names
Literal['remove_unused_categories','check_uniqueness','copy_on_write_X','allow_write_nullable_strings','zarr_write_format','use_sparse_array_on_read','min_rows_for_chunked_h5_copy','disallow_forward_slash_in_h5ad','write_csr_csc_indices_with_min_possible_dtype','auto_shard_zarr_v3','restrict_index_types'] Names of settings to reset.
- names
- Return type:
AbstractContextManager[frozenset[Literal['remove_unused_categories','check_uniqueness','copy_on_write_X','allow_write_nullable_strings','zarr_write_format','use_sparse_array_on_read','min_rows_for_chunked_h5_copy','disallow_forward_slash_in_h5ad','write_csr_csc_indices_with_min_possible_dtype','auto_shard_zarr_v3','restrict_index_types']]]