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

bluesky / hklpy2 / 25195322513 / 1
100%
main: 100%

Build:
DEFAULT BRANCH: main
Ran 01 May 2026 12:01AM UTC
Files 26
Run time 1s
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

30 Apr 2026 11:57PM UTC coverage: 100.0%. Remained the same
25195322513.1

push

github

web-flow
feat #391 add Sample.UB_is_stale and warn on stale UB (#395)

* feat #391 add Sample.UB_is_stale and warn on stale UB

Detect when the orientation reflections used to derive UB have
changed since the last calc_UB.  Sample stores a snapshot of
order[:2] and the physics-relevant fields of those reflections
(geometry, pseudos, reals, units, wavelength) at the end of each
successful calc_UB.  Direct assignment to Sample.U / Sample.UB
clears the snapshot (user takes ownership).  Core.forward and
Core.inverse emit a single UserWarning per call when UB is stale;
pa() (wh full=True) prints a 'UB stale: True' annotation.

Agent: OpenCode (claudeopus47)

* test #391 add UB staleness matrix and warning/pa() tests

Cover the detection matrix from the issue (calc_UB then check;
swap order; add/remove orienting and non-orienting; in-place
mutation; direct U/UB assignment; <2 reflections), the snapshot
lifecycle (set on calc_UB, cleared by direct assignment, refreshed
on re-calc_UB), and the UserWarning + 'UB stale: True' annotation
emitted by Core.forward/inverse and pa().

Agent: OpenCode (claudeopus47)

* docs #391 document stale UB detection in how_calc_ub and FAQ

Add 'How do I tell if my UB is stale?' section to the calc_UB
how-to with triggers, recovery, and a working example.  Add
matching anchor on 'How do I set UB manually...' for cross-link.
Extend faq.ub-wrong with stale UB as a third common cause.  Add
'stale UB' glossary entry and release-notes entry.

Agent: OpenCode (claudeopus47)

* test #391 cover defensive branches in stale-UB detection

Reach 100% coverage on the new code:

* Drop the unreachable if sample is None: return guard in
  Core._warn_if_ub_stale — Core.sample always returns a
  Sample (or raises KeyError) per the property contract.
* Add a test exercising the KeyError branch of
  Sample._compute_ub_snapshot (covers the case where order
  references a name no longer in the dict, e.g. reflections.pop
  used directly instead of Sample.remo... (continued)

3464 of 3464 relevant lines covered (100.0%)

4.99 hits per line

Source Files on job 25195322513.1
  • Tree
  • List 26
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25195322513
  • 804423be on github
  • Prev Job for on main (#25193189621.1)
  • Next Job for on main (#25219051855.1)
  • 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