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

FIX: fix dataplot for ternary cases with __HYPERPLANE__ #252

Conversation

bocklund
Copy link
Member

The presence of __HYPERPLANE__ overall compositions in datasets was causing the dimensionality of tie-regions to be artificially increased. For example, a 3 phase region with an additional HYPERPLANE overall composition was being categorized as a 4 phase region and not plotted. This did not affect binary dataplotting because we did not differently depending on the number of phases in tie-regions (in ternary dataplotting we draw three phase regions as red tie-triangles).

bocklund and others added 3 commits January 13, 2024 17:15
The presence of __HYPERPLANE__ in datasets was causing the dimensionality of tie-regions to be artificially increased. For example, a 3 phase region with an additional __HYPERPLANE__ overall composition was being categorized as a 4 phase region and not plotted.
@bocklund bocklund force-pushed the FIX-ternary-dataplot-ravel-hyperplane branch from 87ada86 to 31462f5 Compare January 14, 2024 01:16
@bocklund
Copy link
Member Author

Added some tests with the expected output (with the savefig lines uncommented) below:
test_comprehensive_binary_dataplot_test
test_comprehensive_ternary_dataplot_test

The guiding principle is that we can plot tie-lines (or tie-triangles) when all of the phase compositions are known. Currently for ternary tie-triangles we don't directly plot phase compositions, just tie-triangles, and so nothing gets plotted unless all three phase compositions are present (__HYPERPLANE__ or not)

@bocklund bocklund merged commit 85a0079 into PhasesResearchLab:master Jan 14, 2024
11 checks passed
@bocklund bocklund deleted the FIX-ternary-dataplot-ravel-hyperplane branch January 14, 2024 01:35
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.

1 participant