Skip to content

Faster rebin xafs (+ dev tools update) - #638

Merged
newville merged 9 commits into
xraypy:masterfrom
maurov:fast_rebin_xafs
Oct 2, 2026
Merged

newville merged 9 commits into
xraypy:masterfrom
maurov:fast_rebin_xafs

Conversation

@maurov

@maurov maurov commented Oct 2, 2026

Copy link
Copy Markdown
Member

@newville I found rebin_xafs() rather slow when rebinning large dataset automatically. I asked Claude to implement a vectorized form of it. For the boxcar method this improves speed enormously (you can check it via the related test file).

Furthermore, I added type hinting and I had to improve the [dev] target in order to get it automatically checked by mypy.

I have not checked the Larix GUI side yet.

@maurov
maurov requested a review from newville October 2, 2026 10:07

@newville newville left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks -- that looks interesting and I can certainly believe it is faster.

@newville
newville merged commit 4adb7c9 into xraypy:master Oct 2, 2026
8 checks passed
@maurov
maurov deleted the fast_rebin_xafs branch October 14, 2026 07:29
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