Giter Site home page Giter Site logo

Comments (7)

capaulson avatar capaulson commented on August 18, 2024

That's surprising. It sounds like this may likely be caused by trying to plot the results. If you comment out the plot commands in the 3D case, does it run?

from pykriging.

DarrenLynch avatar DarrenLynch commented on August 18, 2024

Hi capaulson, yes runs fine if I comment out the plot. I'm running ubuntu not windows is this likely to cause issues?

from pykriging.

capaulson avatar capaulson commented on August 18, 2024

In a python terminal, can you run:
import mayavi.mlab as mlab
Please post the results.

from pykriging.

DarrenLynch avatar DarrenLynch commented on August 18, 2024

`darren@darren-VirtualBox:~$ python
Python 2.7.13 (default, Jan 19 2017, 14:48:08)
[GCC 6.3.0 20170118] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import mayavi.mlab as mlab
`

Nothing else output, Cheers Darren

just noticed that after posting this didn't format as expected but to clarify no errors or other text was outputted to the console

from pykriging.

capaulson avatar capaulson commented on August 18, 2024

Can you try running this:

# Create the data.
from numpy import pi, sin, cos, mgrid
dphi, dtheta = pi/250.0, pi/250.0
[phi,theta] = mgrid[0:pi+dphi*1.5:dphi,0:2*pi+dtheta*1.5:dtheta]
m0 = 4; m1 = 3; m2 = 2; m3 = 3; m4 = 6; m5 = 2; m6 = 6; m7 = 4;
r = sin(m0*phi)**m1 + cos(m2*phi)**m3 + sin(m4*theta)**m5 + cos(m6*theta)**m7
x = r*sin(phi)*cos(theta)
y = r*cos(phi)
z = r*sin(phi)*sin(theta)

# View it.
from mayavi import mlab
s = mlab.mesh(x, y, z)
mlab.show()

This is a demo from Mayavi (http://docs.enthought.com/mayavi/mayavi/mlab.html). Does it plot?

from pykriging.

DarrenLynch avatar DarrenLynch commented on August 18, 2024

Hi, sorry I have been away a while. No this didn't plot, I expected it to fail at the plotting stage however if failed at the s = mlab.mesh(x, y, z) stage with error: 'Segmentation fault (core dumped)'

from pykriging.

capaulson avatar capaulson commented on August 18, 2024

Right, so this sounds like an issues with your install of mayavi. It could be just an issue with the install, so you could try rebuilding/re-installing the library. It might also have something to do with virtualbox. Not sure exactly how mayavi works on a virtual box.

I'm going to close this out, as this is an issue related for another library.

from pykriging.

Related Issues (20)

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.