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

give simplified endmembers useful name #564

Merged
merged 1 commit into from
Dec 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion burnman/tools/polytope.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,17 @@ def simplify_composite_with_composition(composite, composition):
f = sol[0]
except AttributeError:
f = None
new_name = f"{ph.name} (transformed)"
soln = transform_solution_to_new_basis(
ph, new_basis, molar_fractions=f
ph, new_basis, solution_name=new_name, molar_fractions=f
)
for h, name in enumerate(soln.endmember_names):
if name == "User-created endmember":
new_name = (
f"Derived member (occupancies: {soln.endmembers[h][1]})"
)
soln.endmembers[h][0].name = new_name
soln.endmember_names[h] = new_name
new_phases.append(soln)
else:
logging.info(
Expand Down
Loading