Skip to content

feat: include atom shifts in nmrshift predictions - #148

Merged
vcnainala merged 2 commits into
developmentfrom
feat/prediction-atom-shifts
Oct 2, 2026
Merged

vcnainala merged 2 commits into
developmentfrom
feat/prediction-atom-shifts

Conversation

@vcnainala

Copy link
Copy Markdown
Member

Summary

  • nmrshift predictions now keep each atom's predicted shift on the spectrum (info.predictionShifts), instead of discarding it after the trace is built.
  • Atom numbers stay 1-based and follow openchemlib's implicit-hydrogen order, so a client can label the structure and mark the matching peaks.

Test plan

  • Predict a small molecule (for example ethanol) with engine: nmrshift and spectra: ["proton"]
  • Confirm each spectrum includes info.predictionShifts with atom, prediction, and status
  • Confirm the simulated trace is unchanged

@hamed-musallam
hamed-musallam force-pushed the feat/prediction-atom-shifts branch from af1eaf0 to a0c7602 Compare October 2, 2026 09:53
vcnainala and others added 2 commits October 2, 2026 11:57
The spectrum response dropped the atom-to-shift map, so clients could not label atoms or mark the matching peaks.
@hamed-musallam
hamed-musallam force-pushed the feat/prediction-atom-shifts branch from a0c7602 to 332c177 Compare October 2, 2026 10:03
@vcnainala
vcnainala merged commit d1c221f into development Oct 2, 2026
1 check passed
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.

2 participants