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

vallen-systems / vallenae / 27772662379
96%
master: 96%

Build:
Build:
LAST BUILD BRANCH: build/dependency-groups
DEFAULT BRANCH: master
Ran 18 Jun 2026 04:06PM UTC
Jobs 1
Files 20
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

18 Jun 2026 04:04PM UTC coverage: 96.218% (+0.1%) from 96.101%
27772662379

push

github

lukasberbuer
fix: correct time-range to sample mapping in TraDatabase.read_continuous_wave

`read_continuous_wave` can return the wrong number of
samples - and can silently drop data - when reading by an exact time range,
especially when `time_start` falls just before or inside a hit.

Root causes:
- `_get_trai_range_from_time_range` derived its TRAI bounds from record
  start times only, so it skipped the record that straddles `time_start`
  and the record starting at `time_stop`. It now selects every record
  that overlaps the range (querying `view_tr_data`, whose `Time` is in
  seconds, so no timebase conversion or rounding is needed).
- `iread`'s empty-range guard compared `time_start` against the last
  record's *start* time, treating a window that starts inside the last
  record as "past the end" -> data loss. `_get_total_time_range` now
  returns the true data extent (end of the last sample) and the guard
  uses it.
- `read_continuous_wave` summed independently-rounded block/gap lengths,
  drifting by +/-1. It now preallocates `round(stop*fs) - round(start*fs)`
  samples and places each record by integer offset, using the record
  SampleRate (not the database TimeBase) and the channel's own extent for
  open bounds. The `_get_previous_trai` prepend workaround is removed.

An explicit window fully outside the data now returns zeros of the
requested length (consistent with the gap-fill contract) instead of an
empty array.

Add regression tests; restructure the read_continuous_wave tests around a
value-equals-time fixture with parametrized cases.

106 of 106 branches covered (100.0%)

Branch coverage included in aggregate %.

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

988 of 1031 relevant lines covered (95.83%)

0.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27772662379.1 18 Jun 2026 04:06PM UTC 20
96.22
GitHub Action Run
Source Files on build 27772662379
  • Tree
  • List 20
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27772662379
  • 7132eb6c on github
  • Prev Build on master (#27568331471)
  • Next Build on fix/read-continuous-wave (#27825772793)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc