Skip to content

Conversation

@MeyerBender
Copy link
Contributor

Set the default logging level to WARNINGS instead of INFO to avoid printing walls of text when everything is working correctly.

Example usage:

import spatialdata_plot
from spatialdata.datasets import blobs

blob = blobs()

# this used to trigger printing of an info message
# now it just outputs the plot
blob.pl.render_shapes("blobs_circles", method='datashader').pl.show()

# to get the old, more verbose behavior
spatialdata_plot.set_verbosity(True)
blob.pl.render_shapes("blobs_circles", method='datashader').pl.show()

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.82%. Comparing base (2b10a49) to head (d3884fc).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #524      +/-   ##
==========================================
+ Coverage   83.75%   83.82%   +0.06%     
==========================================
  Files           8        9       +1     
  Lines        2555     2566      +11     
==========================================
+ Hits         2140     2151      +11     
  Misses        415      415              
Files with missing lines Coverage Δ
src/spatialdata_plot/__init__.py 100.00% <100.00%> (ø)
src/spatialdata_plot/_logging.py 92.68% <100.00%> (+1.01%) ⬆️
src/spatialdata_plot/_settings.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants