Giter Site home page Giter Site logo

Comments (9)

Marcello-Sega avatar Marcello-Sega commented on June 26, 2024

Hi,

I never tested it on a window machine, but from the error messages it looks like it might be a cython problem. Could you try updating your cython?

M

from pytetgen.

thomasaarholt avatar thomasaarholt commented on June 26, 2024

I'd originally installed it from conda today, and tried uninstalling and reinstalling it using pip, but I get the same error.

from pytetgen.

Marcello-Sega avatar Marcello-Sega commented on June 26, 2024

Mhhh... I'm using py3.6 on my machine. I will have it tested on travis and will let you know asap.

from pytetgen.

Marcello-Sega avatar Marcello-Sega commented on June 26, 2024

Bad luck:

Worker information

The language 'python' is currently unsupported on the Windows Build Environment.

I'll try something else.

from pytetgen.

Marcello-Sega avatar Marcello-Sega commented on June 26, 2024

Still haven't managed to try it on a windows machine, but now it behaves well with python3.x.
The old implementation had a problem with the GIL and memory management.

Could you try upgrading with pip install --upgrade pytetgen ? The new version should be 0.2.0

Most likely the problem was the old .cpp source included in the package, which was definitely not compatible with python3.x. Another option, if still it does not work, would be to install from source to generate the .cpp source from .pyx directly on your machine ( pip install --compile . from within the source directory)

from pytetgen.

thomasaarholt avatar thomasaarholt commented on June 26, 2024

Yes! That built and installed!

from pytetgen.

thomasaarholt avatar thomasaarholt commented on June 26, 2024

Wahey! And it's twice as fast as scipy's implementation on my computer!

from pytetgen.

thomasaarholt avatar thomasaarholt commented on June 26, 2024

That was for 1 million 2D points:

import numpy as np
points = np.random.random((1000000, 2)) * (1000, 1000) # spread over 0-1000 bc we could run into floating point errors

import pytetgen
from scipy.spatial import Delaunay
%timeit Delaunay(points)
%timeit pytetgen.Delaunay(points)

6.34 s ± 20.8 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
3.04 s ± 14.7 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

from pytetgen.

Marcello-Sega avatar Marcello-Sega commented on June 26, 2024

I guess this can be closed.

from pytetgen.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.