Skip to content

Commit

Permalink
Add default limits
Browse files Browse the repository at this point in the history
5 and 95 as values
  • Loading branch information
stan-dot committed May 21, 2024
1 parent b727657 commit bdbf392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bluesky/callbacks/_mpl_image_cross_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def __init__(
# clean defaults
if limit_func is None:

Check warning on line 118 in src/bluesky/callbacks/_mpl_image_cross_section.py

View check run for this annotation

Codecov / codecov/patch

src/bluesky/callbacks/_mpl_image_cross_section.py#L118

Added line #L118 was not covered by tests
# note - cannot import this in the defaults init
limit_func = percentile_limit_factory([0.0, 100.0])
limit_func = percentile_limit_factory([5.0, 95.0])

Check warning on line 120 in src/bluesky/callbacks/_mpl_image_cross_section.py

View check run for this annotation

Codecov / codecov/patch

src/bluesky/callbacks/_mpl_image_cross_section.py#L120

Added line #L120 was not covered by tests
# stash the color map
self._cmap = colormap

Check warning on line 122 in src/bluesky/callbacks/_mpl_image_cross_section.py

View check run for this annotation

Codecov / codecov/patch

src/bluesky/callbacks/_mpl_image_cross_section.py#L122

Added line #L122 was not covered by tests
# set the default norm if not passed
Expand Down

0 comments on commit bdbf392

Please sign in to comment.