Skip to content

Bugfix: io.pwscf.PWInput.from_str()#3931

Merged
janosh merged 4 commits intomaterialsproject:masterfrom
jsukpark:io-pwscf-pwinput-bugfix
Aug 6, 2024
Merged

Bugfix: io.pwscf.PWInput.from_str()#3931
janosh merged 4 commits intomaterialsproject:masterfrom
jsukpark:io-pwscf-pwinput-bugfix

Conversation

@jsukpark
Copy link
Copy Markdown
Contributor

Summary

Fix wrong parsing in io.pwscf.PWInput.from_str() of

  • Namelist options ending with comma (,), and
  • ATOMIC_SPECIES and ATOMIC_POSITIONS cards for structures with oxidation states,

to close #3930

Fixes wrong parsing of:
- Namelist options ending with comma (`,`)
- `ATOMIC_SPECIES` and `ATOMIC_POSITIONS` cards for structures with oxidation states
jsukpark added 2 commits July 17, 2024 12:25
- Must only have one of either + or - in oxidation states, not one of both
@janosh janosh force-pushed the master branch 2 times, most recently from e3fbc67 to 41e6d99 Compare August 3, 2024 19:01
Copy link
Copy Markdown
Member

@janosh janosh left a comment

Choose a reason for hiding this comment

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

thanks for the fix and new test @jsukpark! 👍

@janosh janosh added io Input/output functionality fix Bug fix PRs labels Aug 6, 2024
@janosh janosh enabled auto-merge (squash) August 6, 2024 14:15
@janosh janosh merged commit 99f62d2 into materialsproject:master Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug fix PRs io Input/output functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bugs in io.pwscf.PWInput.from_str() method

2 participants