pmneila / PyMCubes

Marching cubes (and related tools) for Python
BSD 3-Clause "New" or "Revised" License
692 stars 87 forks source link

def _build_variable_indices(band: np.ndarray) -> np.ndarray #29

Closed Li-rr closed 4 years ago

Li-rr commented 4 years ago

Hi, I meet a problem, when i run in ubuntu16.04 python2.7.

import numpy as np import mcubes Traceback (most recent call last): File "", line 1, in File "/home/stu/.local/lib/python2.7/site-packages/mcubes/init.py", line 4, in from .smoothing import * File "/home/stu/.local/lib/python2.7/site-packages/mcubes/smoothing.py", line 22 def _build_variable_indices(band: np.ndarray) -> np.ndarray: ^ SyntaxError: invalid syntax

how can I fix this is?

Li-rr commented 4 years ago

I solve it ,thinks

pmneila commented 4 years ago

Hi @Li-rr,

Happy to hear that you solved it. Just for future reference for people that have the same problem, Python 2.7 is not supported anymore. That code should work properly with Python 3.7 or higher.