From e7958300fa345147343129df35ad85880802b277 Mon Sep 17 00:00:00 2001 From: FG-TUM Date: Thu, 8 Feb 2024 10:55:59 +0100 Subject: [PATCH] fix parsing for negative numbers --- tools/decomp2vtkConverter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/decomp2vtkConverter.py b/tools/decomp2vtkConverter.py index deabe43b57..612ba63a14 100755 --- a/tools/decomp2vtkConverter.py +++ b/tools/decomp2vtkConverter.py @@ -88,7 +88,8 @@ def getCellPointIndices(self): line = f_in.readline() celllist = [] while line != "": - match = re.search(r'([0-9]+) ([0-9. ]+)(.*)', line) + # Matches "[int] [float] [whatever]" + match = re.search(r'([-0-9]+) ([-0-9. ]+)(.*)', line) rank = int(match.group(1).rstrip()) minMaxString = match.group(2).rstrip() configString = match.group(3)