CAVEconnectome / ImageryClient

Publication-ready visualization of overlays of imagery and segmentation from cloudvolume data
MIT License
8 stars 2 forks source link

Save image error in Jupyter notebook tutorial for Layer 2/3 EM images #3

Closed shandran closed 1 year ago

shandran commented 1 year ago

Hello, I am attempting to run the tutorial notebook “Image and Segmentation Download” from MicronsBinder on github. Everything in the notebook works fine until the code at the end to save the images. The error message returned is:

imageryclient.imagery.save_image_slices() argument after ** must be a mapping, not tuple

I have placed a copy of the notebook with the error here on my github repo: https://github.com/shandran/layer23volume/blob/main/mitochondria_analytics/debug/ImageAndSegmentationDownload_save_image_error.ipynb

The python environment I’m using is micronsbinder from here: https://github.com/seung-lab/MicronsBinder)

I did have to pip install imageryclient separately, which is the current version of 1.01. I’m wondering if some syntax or library has changed since the code was originally written and now this line no longer works. Any advice or assistance would be greatly appreciated!

Thanks, Shawn

ceesem commented 1 year ago

This turned out to be a small but impactful typo. I just pushed a new patch (v1.0.2) to PyPi that fixes this, and your notebook now works for me.

Thanks for passing along the notebook, that was helpful.

shandran commented 1 year ago

That fixed it, thank you!