Skip to content

Pre-release fixes, version bump, CHANGELOG, and README for 0.5.0-beta.1#15

Merged
RalfG merged 5 commits into
release/0.5from
fix/pre-release-review
Jun 19, 2026
Merged

Pre-release fixes, version bump, CHANGELOG, and README for 0.5.0-beta.1#15
RalfG merged 5 commits into
release/0.5from
fix/pre-release-review

Conversation

@RalfG

@RalfG RalfG commented Jun 19, 2026

Copy link
Copy Markdown
Member

Pre-release review of release/0.5 before the first beta tag. Covers correctness fixes, a version bump, and documentation.

Fixed

  • get_precursor_info / get_ms2_spectra: restore ValueError (not Exception) for unsupported file types — regression from the io refactor
  • ms2pip_compute_theoretical_mz: raise ValueError on missing ProForma charge instead of silently defaulting to 1, matching the behavior of ms2pip_compute_features
  • annotate_ms2_spectra: raise ValueError with a descriptive message on malformed or non-positive charge suffix in ProForma string; fall back to precursor charge when no suffix is present
  • ms2pip_extract_targets: validate per-spectrum intensity length against peak count; raises Exception instead of silently zero-filling on mismatch

Changed

  • Version bumped 0.5.0-alpha.30.5.0-beta.1
  • LOG2_FLOOR / CLIP_LOG2_MIN consolidated into a single canonical LOG2_FLOOR_F64 constant in src/utils.rs; derived at use sites to avoid precision drift

Added

  • CHANGELOG.md (Keep a Changelog format, full history v0.1.0 – 0.5.0-beta.1)
  • README.md populated with description, function table, supported formats, dependency attribution (rustyms/mzcore, mzdata, timsrust), and development instructions
  • test_unsupported_file_type_raises_value_error: both io functions raise ValueError for unknown file extensions
  • test_no_charge_raises: ms2pip_compute_theoretical_mz raises ValueError on chargeless ProForma (renamed from test_no_charge_defaults)

@RalfG RalfG added this to the 0.5.0 milestone Jun 19, 2026
@RalfG RalfG added bug Something isn't working enhancement New feature or request labels Jun 19, 2026
@RalfG
RalfG force-pushed the fix/pre-release-review branch from 821bc50 to 8671a01 Compare June 19, 2026 09:57
Set up MSVC environment with ilammy/msvc-dev-cmd and set
CMAKE_GENERATOR=Ninja to bypass cmake's unsupported VS 18.0
version detection in the libz-sys build script.
@RalfG
RalfG force-pushed the fix/pre-release-review branch from 8671a01 to a68088b Compare June 19, 2026 10:12
@RalfG
RalfG merged commit 6be9f99 into release/0.5 Jun 19, 2026
4 checks passed
@RalfG
RalfG deleted the fix/pre-release-review branch June 19, 2026 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant