From 5aa41f5e12b6cf34b6176ed17da61def3b7fc596 Mon Sep 17 00:00:00 2001 From: jan Date: Sat, 13 Feb 2021 15:45:58 -0800 Subject: [PATCH] fix reading lwpolylines --- masque/file/dxf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masque/file/dxf.py b/masque/file/dxf.py index f99455b..f30a314 100644 --- a/masque/file/dxf.py +++ b/masque/file/dxf.py @@ -196,7 +196,7 @@ def _read_block(block, clean_vertices: bool) -> Pattern: eltype = element.dxftype() if eltype in ('POLYLINE', 'LWPOLYLINE'): if eltype == 'LWPOLYLINE': - points = numpy.array(tuple(element.lwpoints())) + points = numpy.array(tuple(element.lwpoints)) else: points = numpy.array(tuple(element.points())) attr = element.dxfattribs()