From f02f8904613b2a1974a6bcc98d4322e27d0db866 Mon Sep 17 00:00:00 2001 From: fordprefect Date: Mon, 10 Jul 2023 11:50:31 +0200 Subject: [PATCH] fix parsing routine --- data_ediagram.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data_ediagram.py b/data_ediagram.py index 757ffca..9472b0d 100644 --- a/data_ediagram.py +++ b/data_ediagram.py @@ -56,7 +56,8 @@ Fe+3 0,650852093071001 0,928212948153806 0,795960089904116 0,934015014000395 0,7 def _convert(d): dat = [] - ds = list(map(lambda x: x.split(), d.split("\t\t")[1:])) + d = d.replace("Al\t", "").replace("Fe+3\t", "") + ds = list(map(lambda x: x.split(), d.split("\t\t"))) for s in ds: dat.append(list(map(float, list(map(lambda x: x.replace(",","."), s))))) return dat