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

Spglib 2.4 compatibility: handle TypeError when passing empty cell #298

Merged
merged 3 commits into from
Apr 18, 2024

Conversation

ajjackson
Copy link
Collaborator

Some sanity-checking has been added to spglib and now this scenario leads to a TypeError before the SymmetryDetectionError is reached.

This has been causing test failures on unrelated branches as the CI is using the new version of spglib

closes #297

Some sanity-checking has been added to spglib and now this scenario
leads to a TypeError before the SymmetryDetectionError is reached.
@ajjackson ajjackson added the bug Something isn't working label Apr 18, 2024
@ajjackson
Copy link
Collaborator Author

ajjackson commented Apr 18, 2024

Perhaps it would be wise to explicitly check that a TypeError was caused by an empty cell, and not some other problematic number of atoms.

But first I'd like to see how CI does on this version!

We also need a changelog update.

@ajjackson ajjackson requested a review from mducle April 18, 2024 14:35
Copy link
Contributor

github-actions bot commented Apr 18, 2024

Test Results

0 tests  ±0   0 ✅ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ❌ ±0 

Results for commit 481e8da. ± Comparison against base commit 7608b14.

♻️ This comment has been updated with latest results.

The "positions has to be" string can also arise from other
inconsistencies in data size, which we might be less happy about.
@ajjackson
Copy link
Collaborator Author

Ok, should be ready for review!

Copy link
Member

@mducle mducle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@ajjackson ajjackson enabled auto-merge (rebase) April 18, 2024 15:36
@ajjackson ajjackson merged commit 2ba0302 into master Apr 18, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

spglib 2.4 compatibility
2 participants