Skip to content

Commit

Permalink
Merge pull request #4644 from jtkrogel/nx_fix_pwf_read
Browse files Browse the repository at this point in the history
Nexus: fix namelist read for Projwfc input
  • Loading branch information
ye-luo authored Jun 23, 2023
2 parents 6eff032 + d66d7f8 commit 4224793
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nexus/lib/pwscf_postprocessors.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ def read_text(self,text):
for line in lines:
tokens = line.split(',')
for t in tokens:
t = t.strip()
if len(t)==0:
continue
#end if
name,value = t.split('=')
name = name.strip()
value = value.strip()
Expand Down

0 comments on commit 4224793

Please sign in to comment.