Skip to content

fix: use absolute sum for 1D projections#4068

Merged
lpatiny merged 1 commit intomainfrom
fix/absolute-projection-sum
Mar 23, 2026
Merged

fix: use absolute sum for 1D projections#4068
lpatiny merged 1 commit intomainfrom
fix/absolute-projection-sum

Conversation

@lpatiny
Copy link
Member

@lpatiny lpatiny commented Mar 23, 2026

Summary

  • Use Math.abs() when summing 2D spectrum values to generate 1D projections, preventing positive and negative values from canceling each other out

Test plan

  • Open a 2D spectrum without 1D projections
  • Click "Add missing projection"
  • Verify the generated 1D projections show correct absolute-sum intensities

@cloudflare-workers-and-pages
Copy link

Deploying nmrium with  Cloudflare Pages  Cloudflare Pages

Latest commit: 890ab9a
Status: ✅  Deploy successful!
Preview URL: https://352abcea.nmrium.pages.dev
Branch Preview URL: https://fix-absolute-projection-sum.nmrium.pages.dev

View logs

@lpatiny lpatiny merged commit 2c0adf3 into main Mar 23, 2026
12 checks passed
@lpatiny lpatiny deleted the fix/absolute-projection-sum branch March 23, 2026 11:13
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