Git Product home page Git Product logo

Comments (5)

GenevieveBuckley avatar GenevieveBuckley commented on June 13, 2024 1

Yes, that's fixed it!

Screen Shot 2023-03-31 at 4 27 46 pm

from elastix-napari.

GenevieveBuckley avatar GenevieveBuckley commented on June 13, 2024

Oh hang on, yes, the deprecation mentioned is the source of the incompatibility. There's even quite a nice warning message when you run the plugin with magicgui 0.3.7

magicgui 0.4.0 will change the way that callbacks are called
Instead of a single `Event` instance, with an `event.value` attribute,
callabacks will recieve the value(s) directly:

@advanced.changed.connect
def my_callback(*args):
    # *args are the value(s) themselves!

I think if the callback function signature is type annotated, eg: def callback(x: bool): ... then that might make the problem go away. It's worth a try.

from elastix-napari.

GenevieveBuckley avatar GenevieveBuckley commented on June 13, 2024

...scratch that idea, it is already type-annotated:
https://github.com/SuperElastix/elastix_napari/blob/5180be2ccd3ca5294a4bab149d7a95fc9e9e022e/elastix_napari/elastix_registration.py#L102

Perhaps it's this line that is the problem. That could fit with the warning message about no longer having a .value attribute.
https://github.com/SuperElastix/elastix_napari/blob/5180be2ccd3ca5294a4bab149d7a95fc9e9e022e/elastix_napari/elastix_registration.py#L46

from elastix-napari.

tlambert03 avatar tlambert03 commented on June 13, 2024

See https://pyapp-kit.github.io/magicgui/api/migration/#v030-migration-guide

from elastix-napari.

ntatsisk avatar ntatsisk commented on June 13, 2024

Together with @ViktorvdValk and @N-Dekker, we just released a new version 0.1.8 that fixes the current issues.

@GenevieveBuckley Do you mind taking a look if it also works for you now?

from elastix-napari.

Related Issues (10)

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.