SINTEF / Splipy

Spline modelling made easy.
GNU General Public License v3.0
100 stars 18 forks source link

Syntax error in python2 #90

Closed VikingScientist closed 5 years ago

VikingScientist commented 5 years ago

By running example/write.py in python 2 environment you get the following error:

Traceback (most recent call last):
  File "write.py", line 10, in <module>
    from splipy.io import G2, STL
  File "../splipy/io/__init__.py", line 3, in <module>
    from .spl import SPL
  File "../splipy/io/spl.py", line 50
    patch = Volume(*bases, cpts, raw=True)
SyntaxError: only named arguments may follow *expression

The fix is to name the arguments.