Skip to content

extend avPT#697

Merged
bobmyhill merged 2 commits intogeodynamics:mainfrom
bobmyhill:update_avPT
Nov 12, 2025
Merged

extend avPT#697
bobmyhill merged 2 commits intogeodynamics:mainfrom
bobmyhill:update_avPT

Conversation

@bobmyhill
Copy link
Copy Markdown
Member

This pull request introduces improvements to the thermobarometry inversion framework in BurnMan, focusing on how uncertainties in pressure and temperature ("state uncertainties") are handled and incorporated into misfit calculations.

Updates

  • Added the option to include state uncertainties in tools.thermobarometry.assemblage_affinity_covariance_matrix() and tools.thermobarometry.assemblage_affinity_misfit(). Including state uncertainties increases the total uncertainties and decreases the misfit corresponding to reaction affinities.
  • Added an tools.thermobarometry.assemblage_state_misfit() function to calculate a misfit based on prior state (P, T) and uncertainties.
  • Refactored tools.thermobarometry.estimate_conditions() to optionally use the new tools.thermobarometry.assemblage_state_misfit() function. This also fixes a bug - the old code internally calculated Cov([P, T])^-1 using pinv, which because of the inherent difference in scales resulted in an erroneous zero eigenvalue.
  • Updated examples/example_optimal_thermobarometry.py and output to use the new tools.thermobarometry.assemblage_state_misfit() function. The change in output reflects the bug fix described above.
  • Added new tests to tests.test_tools.py covering the new functionality.
  • Improved error message in burnman/optimize/linear_fitting.py

@bobmyhill bobmyhill merged commit 287e645 into geodynamics:main Nov 12, 2025
12 checks passed
@bobmyhill bobmyhill deleted the update_avPT branch November 12, 2025 23:55
@bobmyhill bobmyhill added this to the 3.0 milestone Nov 28, 2025
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