Coder Social home page Coder Social logo

Comments (8)

deltaLuki avatar deltaLuki commented on June 27, 2024

If you compile splinepy in debug mode and run this, you will see that SplineLib throws the following exception:
ValueError: bsplinelib::parameter_spaces::ParameterSpace::RemoveKnot: Throws the following —> for dimension 0: for dimension0: Cannot insert or remove the first or last knot 2.000000 as only clamped knot vectors are allowed.

from splinepy.

jzwar avatar jzwar commented on June 27, 2024

Yes, but IMO, throwing exceptions only in debug mode is like an assertion. Exceptions should also be thrown if the user inputs faulty data. Especially, as we provide wheels that are built in release mode. Just some random segfault should never occur!

from splinepy.

jzwar avatar jzwar commented on June 27, 2024

As long as this is the case, the bug remains an issue

from splinepy.

deltaLuki avatar deltaLuki commented on June 27, 2024

Yes, but IMO, throwing exceptions only in debug mode is like an assertion. Exceptions should also be thrown if the user inputs faulty data. Especially, as we provide wheels that are built in release mode. Just some random segfault should never occur!

This is because #ifndef NDEBUG is used in the SplineLib. Do you think we should do our own checks inside splinepy? However, this would mean that the values are checked twice. Once in splinepy and once in SplineLib.

from splinepy.

jzwar avatar jzwar commented on June 27, 2024

@danielwolff1

from splinepy.

j042 avatar j042 commented on June 27, 2024

@danielwolff1

from splinepy.

danielwolff1 avatar danielwolff1 commented on June 27, 2024

I'll look into that after I'm back from Munich

from splinepy.

jzwar avatar jzwar commented on June 27, 2024

Maybe also a good start if knot insertion for C^(-1) is implemented ❤️ @j042

from splinepy.

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.