From 5c802c69d36459c4fad4f0979b1aab972a0c3261 Mon Sep 17 00:00:00 2001 From: Kick-H <30561696+Kick-H@users.noreply.github.com> Date: Sun, 3 Jan 2021 09:38:38 +0800 Subject: [PATCH] Update data.py Pizza always cannot recognize the data file with the line 'Atoms # full'. Here I add a split with the line to compare with the 'skewords'. --- src/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data.py b/src/data.py index 2932eee..68c20d2 100644 --- a/src/data.py +++ b/src/data.py @@ -127,7 +127,7 @@ def __init__(self,*list): found = 0 for pair in skeywords: keyword,length = pair[0],pair[1] - if keyword == line: + if keyword == line.split('#')[0].strip(): found = 1 if not headers.has_key(length): raise StandardError, \