Skip to content

Add required memory functions for non-gradient boosted equivalent sources#689

Merged
mdtanker merged 13 commits into
fatiando:mainfrom
mdtanker:required-memory
Jul 15, 2026
Merged

Add required memory functions for non-gradient boosted equivalent sources#689
mdtanker merged 13 commits into
fatiando:mainfrom
mdtanker:required-memory

Conversation

@mdtanker

@mdtanker mdtanker commented Jul 5, 2026

Copy link
Copy Markdown
Member

I find I commonly want to check whether I can fit a jacobian in memory for regular (non-gradient boosted) equivalent sources, but have no easy way to check whether this is true, of if I need to switch to gradient boosted. This PR adds equivalent estimate_required_memory functions for cartesian and spherical equivalent sources.

@santisoler santisoler 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.

It looks good to me, @mdtanker! Thanks for adding this, I get how helpful it can be.

I left a few small suggestions to the docs, feel free to check them out.

Also, I fixed tests failing in Harmonica, so if you update the branch, your tests should pass now.

Thanks again!

Comment thread src/harmonica/_equivalent_sources/spherical.py
@mdtanker mdtanker requested a review from santisoler July 13, 2026 19:48

@santisoler santisoler 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.

All good, @mdtanker. Just spotted a minor thing in the tests for spherical coordinates. Feel free to merge after addressing those! 🚀

Comment thread test/test_eq_sources_spherical.py Outdated
Comment thread test/test_eq_sources_spherical.py Outdated
mdtanker and others added 3 commits July 15, 2026 10:29
Co-authored-by: Santiago Soler <santisoler@fastmail.com>
Co-authored-by: Santiago Soler <santisoler@fastmail.com>
@mdtanker mdtanker merged commit bf62734 into fatiando:main Jul 15, 2026
14 checks passed
@mdtanker mdtanker deleted the required-memory branch July 15, 2026 09:25
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