Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add progressbar to tesseroid forward modelling #430

Merged
merged 13 commits into from
Sep 22, 2023
Merged

Conversation

santisoler
Copy link
Member

Add a new progressbar argument to tesseroid_gravity and to the gravity method of the tesseroid layer. Create a new utils function for initializing a numba_progress.ProgressBar object that can be reused in several forward modelling functions (like prisms and tesseroids).

Relevant issues/PRs:

Fixes #418

Initialize a numba_progress.ProgressBar within a utils function that can
be reused by different forward modelling functions.
Describe the `progressbar` argument in `prism_gravity` and in the
`gravity` method of the prism layer.
@santisoler santisoler changed the title Add progressbar to tesseroid forward mdoelling Add progressbar to tesseroid forward modelling Aug 18, 2023
@santisoler santisoler added this to the v0.7.0 milestone Sep 8, 2023
Now the `intitialize_progressbar()` function returns either
a `ProgressBar` or a `nullcontext`, allowing to use the `with` context
manager with it.
@santisoler santisoler marked this pull request as ready for review September 13, 2023 21:28
@santisoler santisoler merged commit a24f6c7 into main Sep 22, 2023
20 checks passed
@santisoler santisoler deleted the tesseroid-progressbar branch September 22, 2023 21:12
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.

Add progress bar to tesseroid forward modelling
1 participant