Comments (5)
Yes, that's fixed it!
from elastix-napari.
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.
...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.
See https://pyapp-kit.github.io/magicgui/api/migration/#v030-migration-guide
from elastix-napari.
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)
- Accessing the transform parameters and applying them HOT 7
- Error when trying to register / change preset / use masks/ use advanced options HOT 1
- "pip install elastix_napari" does not work HOT 1
- Rename respository from elastix_napari to elastix-napari HOT 3
- Feature request ideas!
- Registration not working for 3D images
- Where to ask questions & submit issues!
- Invalid schema for package 'elastix-napari' HOT 5
- Type Error : Expecting argument of type itkImageSS2 or itkImageSourceISS2 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elastix-napari.