svgpathtools icon indicating copy to clipboard operation
svgpathtools copied to clipboard

IntegrationWarning when computing path length

Open TuBui opened this issue 6 years ago • 0 comments

The warning shows up when I tried to read the following drawing: https://www.dropbox.com/s/3falsd2jitiy79a/4770.svg?dl=0

Procedure to reproduce:

from svgpathtools import svg2paths
paths, path_attrs = svg2paths('4770.svg', return_svg_attributes=False)
for path_id, path in enumerate(paths): 
    path_attr = path_attrs[path_id]
    plen = int(path.length())

Warning details:

/usr/local/lib/python3.5/dist-packages/svgpathtools/path.py:1058: IntegrationWarning: The occurrence of roundoff error is detected, which prevents 
  the requested tolerance from being achieved.  The error may be 
  underestimated.
  epsabs=error, limit=1000)[0]

This is not a big deal since it is not an error. I just want to report so that the developers are aware of. Thanks for your great work.

TuBui avatar Sep 08 '19 16:09 TuBui