Skip to content

fix(get): honour instrument over .h5/.hdf5 native auto-pick - #842

Merged
jepegit merged 2 commits into
masterfrom
819-get-instrument-skip-native-autopick
Aug 8, 2026
Merged

fix(get): honour instrument over .h5/.hdf5 native auto-pick#842
jepegit merged 2 commits into
masterfrom
819-get-instrument-skip-native-autopick

Conversation

@jepegit

@jepegit jepegit commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • When cellpy.get(..., instrument=...) is set, do not auto-pick the native cellpy reader for .h5/.hdf5 solely from the suffix.
  • Unambiguous .cellpy/.cpy suffixes still auto-pick; uninstrumented .h5 loads stay native.
  • Docs + essential routing regression test.

Closes #819

Test plan

  • uv run pytest tests/test_cellpy.py::test_get_h5_instrument_skips_native_autopick tests/test_arbin_sql_h5.py -q
  • uv run pytest -m essential -q
  • CI green on this PR

Made with Cursor

When instrument= is set, skip suffix-based native routing for colliding
HDF5 extensions so raw loaders are not misread as cellpy files (#819).

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Aug 8, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

Griffe cannot resolve PEP 562 cellpy.get aliases after #837; document
cellreader.get (and siblings) so the zensical Docs build succeeds.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jepegit
jepegit merged commit 55c63b3 into master Aug 8, 2026
8 checks passed
@jepegit
jepegit deleted the 819-get-instrument-skip-native-autopick branch August 8, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cellpy.get: when instrument= is set, do not auto-pick native .h5/.hdf5 format

1 participant