From 63b9562b0f1305829339811a70132c6aeb5ebde5 Mon Sep 17 00:00:00 2001 From: Bob Myhill Date: Sun, 17 Dec 2023 01:26:06 +0000 Subject: [PATCH] update example --- examples/example_equilibrate.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/example_equilibrate.py b/examples/example_equilibrate.py index a35145a2e..a39ab16f4 100644 --- a/examples/example_equilibrate.py +++ b/examples/example_equilibrate.py @@ -196,18 +196,17 @@ } sols, prm = equilibrate(composition, assemblage, equality_constraints) # We know that we've made a simpler orthopyroxene solution. - # In this case, the endmembers are either the same, and the names - # have just been appended with "in child solution", or + # In this case, the endmembers are either the same, or # the processing has created an anti-ordered endmember. # We get the index of the ordered/anti-ordered endmember here. try: idx = prm.parameter_names.index( - "p(ordered ferroenstatite " "in child solution)" + "p(ordered ferroenstatite in orthopyroxene (CFMASCrO) (transformed))" ) p_fms = np.array([sol.x[idx] for sol in sols if sol.success]) except ValueError: idx = prm.parameter_names.index( - "p(User-created endmember " "in child solution)" + "p(Derived member (occupancies: [Mg][Fe][Si]1/2) in orthopyroxene (CFMASCrO) (transformed))" ) p_fms = np.array([-sol.x[idx] for sol in sols if sol.success])