Skip to content

feat(calculators): garnet fe_basis + wt fractionation - #10

Merged
bknight1 merged 11 commits into
mainfrom
feat/garnet-fe-basis
Aug 16, 2026
Merged

feat(calculators): garnet fe_basis + wt fractionation#10
bknight1 merged 11 commits into
mainfrom
feat/garnet-fe-basis

Conversation

@bknight1

Copy link
Copy Markdown
Owner

Summary

  • MAGEMinGarnetCalculator.__init__ takes fe_basis argument ('FeOt' default, 'Fe2+' for stoichiometric ferrous-only split).
  • _extract_garnet_elements_from_oxides branches on self.fe_basis — FeOt places all iron on the divalent site (community convention); Fe2+ uses the excess-oxygen split.
  • PhaseFunctions.fractionate_phase handles PP_vec indexing, adds frac_amount <= 0 no-op guard.
  • gt_along_path documents normalise_start semantics; generate_2D_grid_gt_endmembers unwraps single-instance bundles.

Depends on: #9 (refactor/instance-aware-extract-grid) + #8 (feat/utils-feot-redox)

Test plan

  • python3 -m unittest tests/test_fe_basis.py tests/test_fractionation.py (10 tests pass)
  • python3 -m unittest discover tests (12 tests pass, 0 failures)

@bknight1
bknight1 merged commit 9ceb419 into main Aug 16, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or capability needs-review Requires reviewer attention

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant