Git Product home page Git Product logo

Comments (2)

damonge avatar damonge commented on August 16, 2024

@James11222 indeed this is not implemented. The easiest short-term, "hacky" solution for you would be to create a Pk2D that spans more than one scale factor. Since you don't care about evolution, you can probably just repeat the same Pk array at a few values of a (I forget what kind of interpolation we're using here, but I imagine 3 values of a will be enough). Let me know if this works for you.

The longer-term solution would be to allow for Pk2Ds to be generated at a single scale factor (and assume that they are the same at all as) or, perhaps even simpler, to allow for factorisable Pk2Ds, so you can pass the k and a dependence as two different multiplicative factors (this is already implemented at the C level, but not visible to python). If this would be a desirable feature, perhaps best to open a dedicated issue for it.

from ccl.

tilmantroester avatar tilmantroester commented on August 16, 2024

We should catch the C-level error in any case though, crashing the python interpreter is bad.

from ccl.

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.