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

make fit solution more accessible #554

Merged
merged 1 commit into from
Jun 22, 2023

Conversation

bobmyhill
Copy link
Member

This PR makes the function burnman.optimize.composition_fitting.fit_composition_to_solution() more accessible by:

  • Implementing a DummyCompositionSolution class that doesn't require declaration of real endmembers.
  • Adding a site_occupancies method to Solution that returns the current species proportions on each site
  • Adding a site_formula method to Solution that returns a readable string formula with the current species proportions on each site

The new functions are tested in examples/example_fit_composition.py which produces new output.

@bobmyhill bobmyhill merged commit dac8cd6 into geodynamics:master Jun 22, 2023
5 checks passed
@bobmyhill bobmyhill deleted the fitsolution2 branch June 22, 2023 15:59
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.

None yet

1 participant