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

bluesky / hklpy2 / 24499071962
100%

Build:
DEFAULT BRANCH: main
Ran 16 Apr 2026 08:03AM 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

16 Apr 2026 08:01AM UTC coverage: 100.0%. Remained the same
24499071962

push

github

web-flow
Refactor misc.py phase 5: rename to utils.py and delete misc.py (closes #340) (#356)

* maint #345 rename misc.py to utils.py and delete it; closes #340

Completes the misc.py refactor (#340):
- Create hklpy2/utils.py with all remaining general-purpose utilities
  (axes_to_dict, check_value_in_list, compare_float_dicts, convert_units,
  distance_between_pos_tuples, flatten_lists, istype, load_yaml,
  load_yaml_file, pick_closest_solution, pick_first_solution, roundoff,
  unique_name, validate_and_canonical_unit, validate_not_parallel) and
  all shared constants (IDENTITY_MATRIX_3X3, INTERNAL_* units, UREG, etc.)
- Delete misc.py — no re-export shim.
- Rename test_misc.py to test_utils.py; update all imports.
- Update all internal imports across 28 source, backend, block, and test
  files to use hklpy2.utils directly.
- Update 'hklpy2.misc.pick_*_solution' string references in diffract.py
  and test_diffract.py to 'hklpy2.utils.pick_*_solution'.
- Update run_utils.py to import constants from utils instead of misc.

Agent: OpenCode (claudesonnet46)

* fix #345 update hklpy2.misc string reference in test_make_dynamic_instance_raises

The test passed 'hklpy2.misc.DEFAULT_MOTOR_LABELS' as a dotted path to
make_dynamic_instance to verify TypeError for non-callable. With misc.py
deleted this raised ModuleNotFoundError instead. Update to
'hklpy2.utils.DEFAULT_MOTOR_LABELS'.

Agent: OpenCode (claudesonnet46)

49 of 49 new or added lines in 13 files covered. (100.0%)

3213 of 3213 relevant lines covered (100.0%)

4.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24499071962.1 16 Apr 2026 08:04AM UTC 26
100.0
GitHub Action Run
Source Files on build 24499071962
  • Tree
  • List 26
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 92c67f6b on github
  • Prev Build on main (#24497618767)
  • Next Build on main (#24499589560)
  • 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