diff --git a/nexus/lib/pwscf_postprocessors.py b/nexus/lib/pwscf_postprocessors.py index f62b6afe2c..4c3a1fc875 100644 --- a/nexus/lib/pwscf_postprocessors.py +++ b/nexus/lib/pwscf_postprocessors.py @@ -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()