Code Monkey home page Code Monkey logo

Comments (6)

amueller avatar amueller commented on May 27, 2024

Opened duplicate issue #237, some discussion there.

from scikit-image.

tonysyu avatar tonysyu commented on May 27, 2024

Since you closed the other PR, I'll just copy your comment here so that it doesn't look like I'm talking to myself :)

In sklearn we put +SKIPTEST at the end of all lines of the non-doctests. That is clearly not optimal but we couldn't think of anything better. Using >> is an option but breaks the sphinx translation (so it will be ugly in the rendered html).

Good point about the Sphinx issue. I can't seem to find documentation for +SKIPTEST; do you mean +SKIP. It's pretty ugly, but if we limit the number of examples that aren't valid doctests (which is a good idea anyway), it shouldn't be too bad.

I also noticed that there where some issues with dtype. It was "expected" to be a string, but really was a numpy object. Do you think these where simply never tested?

I wouldn't be too surprised if they weren't ever tested, actually, but I can't really say for sure.

And do you have any idea waht the TypeError: 'module' object is not callable might be?

It looks like rank_order is both a module in the filter subpackage and a function imported into the namespace of the filter subpackage. I don't know why it would work in some cases but not in others. We should rename the rank_order module to _rank_order (this is the convention we've been using).

from scikit-image.

tonysyu avatar tonysyu commented on May 27, 2024

Oh actually, the dtype issue may have been a change in numpy. I vaguely remember some changes to dtype printing that were discussed on the numpy list. I see the same error as you though, so it's probably safe to change. (Unless someone else chimes in to the contrary).

from scikit-image.

tonysyu avatar tonysyu commented on May 27, 2024

Renaming some of the modules in the filter package seems to fix a lot of the errors (45 errors down to 30; 26 failures down to 20). See PR #240.

from scikit-image.

tonysyu avatar tonysyu commented on May 27, 2024

Unfortunately, some modules with similarly-named functions also have cython modules that already use the underscore-prefix convention (e.g. skeletonize and watershed).

from scikit-image.

amueller avatar amueller commented on May 27, 2024

Thanks for the feedback and for tackling this so quickly (at least partially).
I try to focus on #206 to get that finally done, then I'll try to give this one a look.

from scikit-image.

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.