From 29add4ef342560f367c2a6ea48ac848d098c054b Mon Sep 17 00:00:00 2001 From: Jaron Krogel Date: Fri, 23 Jun 2023 09:16:43 -0400 Subject: [PATCH] nexus: fix namelist read --- nexus/lib/pwscf_postprocessors.py | 4 ++++ 1 file changed, 4 insertions(+) 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()