Skip to content

docs: make docstrings and docs instrument neutral (#1125) - #1127

Merged
jepegit merged 1 commit into
masterfrom
cursor/1125-instrument-neutral-docs-0881
Oct 1, 2026
Merged

jepegit merged 1 commit into
masterfrom
cursor/1125-instrument-neutral-docs-0881

Conversation

@jepegit

@jepegit jepegit commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Closes #1125

What

Removes wording that still assumes cellpy is a .res (Arbin) loader, while keeping every mention that is genuinely Arbin-specific.

Docstrings / comments (no behaviour change)

  • src/cellpy/readers/cellreader.py: module docstring now says "common .cellpy format" and points at cellpy.print_instruments(); the save example writes .cellpy instead of .h5. set_raw_datadir, set_cellpy_datadir (its example now calls the right method), check_file_ids and the deprecated load no longer talk about "res-files" / "hdf5 files". One logging.debug string: contains %i raw files.
  • neware_xlsx.py: class/loader docstrings no longer claim to load "arbin-data from MS SQL server" (copy-paste leftover).
  • biologics_mpr.py: file_name is documented as a .mpr path, not .res.
  • maccor_txt_one.py / maccor_txt_zero.py: # new Arbin SQL Server comments on Maccor header aliases → # alias shared with the Arbin SQL loaders.

Docs

  • reference/summary_columns.md: 58 columns "for a plain load from any tester"; the Ah example is introduced with "For example, with an Arbin .res file".
  • getting_started/basic_usage.md: one sentence that the .res filenames are only the running example and any registered tester format works the same way.
  • guides/units.md, fundamentals/glossary.md, agents/index.md: Arbin Ah phrased as one tester among many; "large raw files (.res, SQL dumps, …)".

Kept on purpose: installation / troubleshooting / cellpy info --check driver text, the instrument table, arbin_res loader ids, dataset_number, example_data.raw_file() being "a small Arbin file", config/secrets, and comparative comments in merger / harmonize / declarations. Rendered tutorials under docs/examples/ are out of scope (they come from the notebooks).

Triage inventory lives in .issueflows/03-solved-issues/issue1125_plan.md.

How to test

  • uv run --group docs zensical build --clean → No issues found
  • uv run .issueflows/00-tools/check_docs_relative_links.py → all relative links resolve
  • MPLBACKEND=Agg uv run pytest -m essential → 981 passed, 74 skipped; the 2 failures in tests/test_filefinder.py::test_find_by_project_* fail identically on a stashed origin/master in the same VM (master CI is green), so they are environment-specific and unrelated.
  • black --check on the touched source files reports the same 3 pre-existing reformat suggestions as master.
Open in Web Open in Cursor 

Generic prose in cellreader no longer calls raw files "res-files" or cellpy
files "hdf5 files" (module docstring, set_raw_datadir, set_cellpy_datadir,
check_file_ids, load, one debug message). The Neware xlsx loader docstrings
no longer claim to load Arbin data from MS SQL server, and the Biologic mpr
loader documents a .mpr path instead of .res. Maccor header-alias comments
say the alias is shared with the Arbin SQL loaders rather than "new Arbin
SQL Server". Unit/summary docs phrase the Arbin Ah case as one tester among
many, and basic_usage says the .res filenames are only the running example.

Genuinely Arbin-specific text (drivers, arbin_res, dataset_number) is
unchanged. Adds the HISTORY bullet and archives the issue-flow files.

Closes #1125

Co-authored-by: Jan Petter Maehlen <jepe@ife.no>
@jepegit
jepegit marked this pull request as ready for review October 1, 2026 17:19
@jepegit
jepegit merged commit de67f89 into master Oct 1, 2026
7 checks passed
@jepegit
jepegit deleted the cursor/1125-instrument-neutral-docs-0881 branch October 1, 2026 17:19
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.

Docstring and docs instrument neutral

2 participants