From b7237e248ebc27a9f55f822eadc49cf2e32220d4 Mon Sep 17 00:00:00 2001 From: andersonfaller Date: Tue, 3 May 2022 18:15:01 -0300 Subject: [PATCH] Additional criteria to stop reading geom. in ppl Fixing a bug I found when there was an ANNULUS geometry following the BRANCH geometry, failing to fall into the break condition, appending extra incorrect values to raw_geometry. --- pyfas/ppl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfas/ppl.py b/pyfas/ppl.py index 2860f16..e16bef2 100644 --- a/pyfas/ppl.py +++ b/pyfas/ppl.py @@ -92,7 +92,7 @@ def extract_geometry(self, branch, branch_begin): except ValueError: pass raw_geometry.extend(points) - if 'CATALOG' in line or 'BRANCH' in line: + if ('CATALOG' in line) or ('BRANCH' in line) or ('ANNULUS' in line): break xy_geo = raw_geometry self.geometries[branch] = (xy_geo[:int(len(xy_geo)/2)],