-
Notifications
You must be signed in to change notification settings - Fork 92
Simplify Named RAI name conversion #323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
When you use ij.py.from_java, you open the door to unwanted conversion behavior. As an example, if jobj is linked to an ImagePlus, the conversion of the name can utilize imagej-legacy's StringToImagePlusConverter, making the resulting xarray.name an ndarray. This was the source of imagej/napari-imagej#304
|
I wrote minimal example to test this in imagej/napari-imagej#304. We just need to show the image before trying to convert it with |
|
I haven't really decided on a good test for this and I'm hesitant to add in something like |
So what am I, chopped liver?
Sounds good! |
|
Doh! Yeah I take that back! Haha the ☕ is still getting into my system. |
|
I'll add the test momentarily |
There really isn't a ton of good places to test this...but this is better than nothing?
elevans
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
|
This pull request has been mentioned on Image.sc Forum. There might be relevant details there: https://forum.image.sc/t/fiji-friends-weekly-dev-update-thread/103718/85 |
When you use
ij.py.from_java, you open the door to unwanted conversion behavior. As an example, ifjobjis linked to an ImagePlus, the conversion of the name can utilize imagej-legacy'sStringToImagePlusConverter, making the resultingxarray.nameanndarray.This was the source of imagej/napari-imagej#304
@elevans can you think of any worthwhile tests to add here?