GithubHelp home page GithubHelp logo

Comments (5)

zerothi avatar zerothi commented on June 27, 2024

@pfebrer should we warn about complex data-type, and then only pass the float, or simply accept the warning that arises?

from sisl.

pfebrer avatar pfebrer commented on June 27, 2024

Hmm interesting, do complex value iso surfaces even make sense? Can you say that some complex value is larger/smaller than another? You would have to compute some real number out of them (e.g. the modulus) and then compute an isosurface for that, right?

If that's the case, I think a warning from our side wouldn't solve much. We could either keep the scikit-image warning or raise an error (which maybe is the best option).

from sisl.

zerothi avatar zerothi commented on June 27, 2024

Yeah, probably the modulus would be the best thing, shouldn't we then silently do that for a complex grid?
In that case I would do something like this:

  1. convert the grid to the modulus
  2. define a projection angle (lets default to 0, real axis choice), then choose the sign of the modulus depending on the projection?

Or would you do something else?

from sisl.

pfebrer avatar pfebrer commented on June 27, 2024

I'm not sure if we should do anything silently 😅 In any case, I would do it only if the isosurface level requested by the user is also a complex value, so that we are more certain that this is what the user wants to do.

Otherwise I would raise an error.

from sisl.

zerothi avatar zerothi commented on June 27, 2024

I'm not sure if we should do anything silently 😅 In any case, I would do it only if the isosurface level requested by the user is also a complex value, so that we are more certain that this is what the user wants to do.

Otherwise I would raise an error.

Asking for a complex isosurface would be horrendous :)
It will be individual points, I think perhaps the modulus would be the most appropriate.

from sisl.

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.