Skip to content

feat: implement molecular weight calculation (Mn, monoisotopic, ByTar…#2

Merged
Peariforme merged 1 commit intomasterfrom
feat/molecular-weight
Feb 25, 2026
Merged

feat: implement molecular weight calculation (Mn, monoisotopic, ByTar…#2
Peariforme merged 1 commit intomasterfrom
feat/molecular-weight

Conversation

@Peariforme
Copy link
Copy Markdown
Owner

…getMn, ByExactMass)

  • average_mass() and monoisotopic_mass() computed from the concrete SMILES via opensmiles node/atom API (heavy atoms + implicit H)
  • PolymerChain.mn populated automatically at build time
  • BuildStrategy::ByTargetMn and ByExactMass implemented via linear interpolation on MW(n=1) and MW(n=2)
  • 18 integration tests covering PE / PP / PS and all build strategies
  • Criterion benchmarks: average_mass, monoisotopic_mass, by_target_mn
  • Workspace deps switched from git to crates.io (bigsmiles/opensmiles "0.1")
  • benchmark.yml updated to run all bench files
  • README updated with new features and code examples

…getMn, ByExactMass)

- average_mass() and monoisotopic_mass() computed from the concrete SMILES
  via opensmiles node/atom API (heavy atoms + implicit H)
- PolymerChain.mn populated automatically at build time
- BuildStrategy::ByTargetMn and ByExactMass implemented via linear
  interpolation on MW(n=1) and MW(n=2)
- 18 integration tests covering PE / PP / PS and all build strategies
- Criterion benchmarks: average_mass, monoisotopic_mass, by_target_mn
- Workspace deps switched from git to crates.io (bigsmiles/opensmiles "0.1")
- benchmark.yml updated to run all bench files
- README updated with new features and code examples

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Peariforme Peariforme merged commit da7aab4 into master Feb 25, 2026
7 of 8 checks passed
@Peariforme Peariforme deleted the feat/molecular-weight branch February 25, 2026 19:39
@github-actions github-actions bot mentioned this pull request Feb 25, 2026
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.

1 participant