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

bluesky / hklpy2 / 25694096436
100%

Build:
DEFAULT BRANCH: main
Ran 11 May 2026 08:05PM UTC
Jobs 1
Files 26
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

11 May 2026 08:02PM UTC coverage: 100.0%. Remained the same
25694096436

push

github

web-flow
feat #399 strict refusal of half-defined orientation transitions (#402)

Mutations that would leave the sample half-defined (two or more
reflections still in the dict, but fewer than two named in
`reflections.order` restricted to existing names) now raise
`ReflectionError` before the mutation is committed.  The user must
explicitly designate the new orienting pair (via
`set_orientation_reflections([r1, r2])` or by assigning
`reflections.order = [...]`) before removing the current one, or
remove non-orienting reflections first so the sample falls below the
orientation threshold.

This is option A (strict) from the discussion on #397: the user is
the only authority on which two reflections orient the sample.

Implementation: a new `_check_strict_order_health` helper computes
the prospective post-mutation state and raises early so the dict and
`order` are unchanged when the exception fires.  All nine documented
mutation paths (`Sample.remove_reflection`, `__delitem__`, `pop`,
`popitem`, `clear`, `update`, `__setitem__`, the `order` setter,
and `set_orientation_reflections` / `setor`) gate on the helper.
Multi-step internal operations (`add`, `_fromdict`) suspend the
check via a re-entrant `_suspend_strict_check` context manager so
intermediate states do not trip it.  `calc_UB(r1, r2)` continues to
work because it explicitly re-assigns `order` to a length-2 list
first.

This is a breaking change; the unreleased section bumps from 0.6.3
to 0.7.0 per the project's SemVer policy.

Agent: OpenCode (claudeopus47)

48 of 48 new or added lines in 2 files covered. (100.0%)

3559 of 3559 relevant lines covered (100.0%)

4.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25694096436.1 11 May 2026 08:06PM UTC 26
100.0
GitHub Action Run
Source Files on build 25694096436
  • Tree
  • List 26
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 0b5bbe82 on github
  • Prev Build on main (#25691104174)
  • Next Build on main (#25696814031)
  • 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