Skip to content

Conversation

@srmnitc
Copy link
Member

@srmnitc srmnitc commented Jul 13, 2025

This pull request introduces a conditional check for the use_composition_scaling key in the comps dictionary within the prepare_inputs_for_phase_diagram function in calphy/phase_diagram.py. If the key is not present, it defaults to True.

Key change:

  • Enhancement to composition scaling logic:
    • Added a conditional check to ensure the use_composition_scaling key is explicitly handled. If the key is missing, the code now defaults use_composition_scaling to True. This improves robustness by preventing potential KeyError exceptions.

@srmnitc srmnitc merged commit 19411b5 into main Jul 13, 2025
1 check passed
@srmnitc srmnitc deleted the bug_fix1 branch July 13, 2025 12:34
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.

2 participants