Skip to content

Commit 5028415

Browse files
committed
more verbosity docs
1 parent b630891 commit 5028415

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

docs/release-notes/1.10.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Some highlights:
4747

4848
* Updated {func}`~scanpy.read_visium` such that it can read spaceranger 2.0 files {smaller}`L Lehner`
4949
* Fix {func}`~scanpy.pp.normalize_total` for dask {pr}`2466` {smaller}`P Angerer`
50-
* Fix setting `sc.settings.verbosity` in some cases {pr}`2605` {smaller}`P Angerer`
50+
* Fix setting :attr:`scanpy.settings.verbosity` in some cases {pr}`2605` {smaller}`P Angerer`
5151
* Fix all remaining pandas warnings {pr}`2789` {smaller}`P Angerer`
5252
* Fix some annoying plotting warnings around violin plots {pr}`2844` {smaller}`P Angerer`
5353
* Scanpy now has a test job which tests against the minumum versions of the dependencies. In the process of implementing this, many bugs associated with using older versions of `pandas`, `anndata`, `numpy`, and `matplotlib` were fixed. {pr}`2816` {smaller}`I Virshup`

src/scanpy/_settings.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,12 @@ def override(
109109
"""Temporarily override verbosity.
110110
111111
>>> import scanpy as sc
112-
>>> sc.settings.verbosity
113-
<Verbosity.hint: 3>
112+
>>> sc.settings.verbosity = sc.Verbosity.info
114113
>>> with sc.settings.verbosity.override(settings.verbosity.debug):
115114
... sc.settings.verbosity
116115
<Verbosity.debug: 4>
117116
>>> sc.settings.verbosity
118-
<Verbosity.hint: 3>
117+
<Verbosity.info: 2>
119118
"""
120119
settings.verbosity = verbosity
121120
yield self

src/scanpy/external/tl/_phate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ def phate( # noqa: PLR0913
111111
random_state
112112
Random seed. Defaults to the global `numpy` random number generator
113113
verbose
114-
If `True` or an `int`/`Verbosity` ≥ 2/`hint`, print status messages.
115-
If `None`, `sc.settings.verbosity` is used.
114+
If `True` or an :class:`int`/:class:`~scanpy.Verbosity` ≥ 2/:attr:`~scanpy.Verbosity.hint`, print status messages.
115+
If `None`, :attr:`scanpy.settings.verbosity` is used.
116116
copy
117117
Return a copy instead of writing to `adata`.
118118
kwargs

0 commit comments

Comments
 (0)