Skip to content

Check if primitive symmetry search is passed#479

Merged
lan496 merged 5 commits intospglib:developfrom
lan496:msg-fix
May 6, 2024
Merged

Check if primitive symmetry search is passed#479
lan496 merged 5 commits intospglib:developfrom
lan496:msg-fix

Conversation

@lan496
Copy link
Copy Markdown
Member

@lan496 lan496 commented Apr 29, 2024

prm_get_primitive_symmetry seems to be failed with some symprec and the current MSG implementation cannot recover from it. This PR fixes to check the returned primitive symmetry to avoid SEGV.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.87%. Comparing base (69da2b8) to head (ee014c5).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #479      +/-   ##
===========================================
+ Coverage    83.80%   83.87%   +0.06%     
===========================================
  Files           25       25              
  Lines         8164     8167       +3     
  Branches      1697     1706       +9     
===========================================
+ Hits          6842     6850       +8     
+ Misses        1322     1317       -5     
Flag Coverage Δ
c_api 74.78% <100.00%> (+0.07%) ⬆️
fortran_api 56.19% <33.33%> (-0.01%) ⬇️
python_api 80.02% <33.33%> (-0.03%) ⬇️
unit_tests 13.47% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lan496 lan496 requested a review from LecrisUT April 29, 2024 02:56
@lan496 lan496 requested a review from LecrisUT May 5, 2024 22:51
@lan496 lan496 mentioned this pull request May 6, 2024
4 tasks
@lan496 lan496 merged commit b59135b into spglib:develop May 6, 2024
@lan496 lan496 deleted the msg-fix branch May 6, 2024 10:53
@LecrisUT LecrisUT added this to the 2.5 milestone Jul 2, 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