• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

WashU-Astroparticle-Lab / straxion / 26244110227
66%

Build:
DEFAULT BRANCH: main
Ran 21 May 2026 06:08PM UTC
Jobs 1
Files 14
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 May 2026 06:05PM UTC coverage: 67.008% (+0.2%) from 66.804%
26244110227

push

github

web-flow
Add optional log color scale to plot_channels (#87)

* Add optional log color scale to plot_channels

Introduce a ``log_scale`` flag on ``plot_channels`` that switches the
colormap normalization to ``LogNorm``. Non-positive values, which have
no representation on a log scale, are masked and rendered in a
configurable ``bad_color`` (default ``"lightgrey"``) so the channel
location remains visible. ``vmin``/``vmax`` are honored when provided
and otherwise derived from the positive values.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* Use NaN instead of masked array for log_scale non-positives

Avoids matplotlib UserWarnings ("converting a masked element to nan")
emitted on every scatter call. NaN is treated as 'bad' by the colormap
identically to a masked value, so the rendered output is unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* Render log_scale non-positive channels with a dedicated scatter

cmap.set_bad does not actually paint NaN entries in a PathCollection -
matplotlib scatter drops them, so the previous implementation left
non-positive channels invisible. Draw a separate scatter for the
non-positive subset with an explicit bad_color facecolor, and draw the
positive subset under LogNorm. Tests now assert on the actually
rendered facecolors and the number of plotted points per collection.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

13 of 13 new or added lines in 1 file covered. (100.0%)

1308 of 1952 relevant lines covered (67.01%)

0.67 hits per line

Subprojects
ID Flag name Job ID Ran Files Coverage
1 /jobs/182144689 26244110227.1 21 May 2026 06:08PM UTC 14
67.01
GitHub Action Run
Source Files on build 26244110227
  • Tree
  • List 14
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • eebc849d on github
  • Prev Build on main (#26204000572)
  • Next Build on main (#26302944663)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc