Skip to content

Improvements for to_dict method - #224

Merged
g-bauer merged 1 commit into
mainfrom
fix_to_dict_spinodal
Feb 8, 2024
Merged

g-bauer merged 1 commit into
mainfrom
fix_to_dict_spinodal

Conversation

@g-bauer

@g-bauer g-bauer commented Feb 7, 2024

Copy link
Copy Markdown
Contributor
  • PyPhaseDiagram.to_dict now compares pressures of both phases. If they are different (e.g. when PyPhaseDiagram.spinodal was used as constructor), pressures for both phases are stored ("pressure liquid", "pressure vapor").
  • Added PyStateVec.to_dict method that calculates the same properties as PyPhaseDiagram.to_dict for the states stored in PyStateVec.
  • Added small example notebook.

@g-bauer
g-bauer requested a review from prehner February 7, 2024 14:45
@g-bauer
g-bauer force-pushed the fix_to_dict_spinodal branch from 108e058 to 8056485 Compare February 8, 2024 15:11
@g-bauer
g-bauer merged commit a23f9c5 into main Feb 8, 2024
@g-bauer
g-bauer deleted the fix_to_dict_spinodal branch February 8, 2024 15:34
@prehner prehner added this to the v0.7.0 milestone Mar 17, 2024
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