scverse/spatialdata-notebooks

The tutorial samples did not work for me

Closed this issue · 5 comments

I tried python 3.10 and python 3.11, I got the same issue when running the Transformation and Coordinate sample notebook. I could not get neither the scale nor the transformation example to render as displayed in the tutorial. I got the identical warning messages. But my output did not change from the previous step, there was no scaling nor transformation.

error1

However, If I modify the code to the following:

scale = Scale([0.5], axes=("x",))
set_transformation(sdata.images["raccoon"], scale, to_coordinate_system="global")
sdata.pl.render_labels().pl.render_shapes().pl.render_images().pl.show()

By changing the scale value to be 0.5, I did see the scale transformation, but it applies to all elements, not just the image.

image

Please advise. Thank you!

I've got the same issue as you decscribed and wait for solution

@duxiuju @cshuxteau sorry I missed this notification and saw the issue just now. Thanks for reporting, I will look into this and get back to this in the next days.

CC @timtreis, do we have tests for plots equivalent to this in the spatialdata-plot repo?

I'd cautiously guess that's because we didn't do a PyPi release in a bit. I'll cover the images from this notebook with tests this week and then release again. There have been quite a few fixed since the last release.

@timtreis perfect thanks a lot!

It should be fixed (since quite some releases) now.