Skip to content

Add thickness likelihood module and refactor existing likelihood functions #7

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

Merged
merged 3 commits into from
Jun 12, 2025

Conversation

Leguark
Copy link
Member

@Leguark Leguark commented May 4, 2025

Add Likelihood Module with Thickness and Gravity Functions

This PR introduces a new module structure for likelihood functions in gempy_probability:

  • Create dedicated likelihoods module with implementations for:

    • apparent_thickness_likelihood - Moved from model examples
    • apparent_thickness_likelihood_II - New implementation that calculates thickness based on lithology ID and distance
    • gravity_inversion_likelihood - Basic implementation for gravity inversion
  • Add test for the new thickness likelihood function that demonstrates how to:

    • Set up a custom grid for a well
    • Calculate thickness using the new method
    • Visualize the results
  • Update development logs to mark completed tasks and add new ones

The new structure improves code organization and provides more flexible thickness calculation options.

@Leguark Leguark changed the title [WIP] Moving likelihood function to module Add thickness likelihood module and refactor existing likelihood functions May 4, 2025
Copy link
Member Author

Leguark commented Jun 12, 2025

Merge activity

  • Jun 12, 8:22 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jun 12, 8:32 AM UTC: Graphite rebased this pull request as part of a merge.
  • Jun 12, 8:34 AM UTC: @Leguark merged this pull request with Graphite.

@Leguark Leguark changed the base branch from gempy_posterior_analysis to graphite-base/7 June 12, 2025 08:29
@Leguark Leguark changed the base branch from graphite-base/7 to main June 12, 2025 08:31
Leguark added 3 commits June 12, 2025 08:32
Add `apparent_thickness_likelihood_II` function for calculating apparent thickness with structured grids. Introduce a new test case to validate functionality and enhance GemPy posterior visualization. Update documentation logs to reflect development progress.
@Leguark Leguark merged commit 7812a39 into main Jun 12, 2025
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.

1 participant