nbpapaya icon indicating copy to clipboard operation
nbpapaya copied to clipboard

Multiple images overlap on a wrong way

Open dpaniukov opened this issue 8 years ago • 4 comments

Hello,

I have an issue using Brain(["/path/to/brain1.nii","/path/to/brain2.nii"],8888) If my 'brain1.nii' is a T1 image, and 'brain2.nii' is functional, sometimes I get T1 on top of functional, and sometimes functional goes on top of T1. I've sent an issue request to Papaya, but they've said their scripts are designed to wait for the first image to load before loading the second one. Any ideas on what might have created such competition?

dpaniukov avatar Dec 21 '16 14:12 dpaniukov

Not sure! I've seen this happen occasionally, but I'm not sure how to reproduce it consistently to get any ideas. Do you see any patterns to this bug?

akeshavan avatar Dec 21 '16 22:12 akeshavan

Does it only (sometimes) happen when you rerun a cell, or does it (sometimes) happen on the first run as well?

akeshavan avatar Dec 21 '16 22:12 akeshavan

On a first run and on a rerun. I have an idea, but my notebooks are unavailable right now to verify. The idea is it may happen when I try to run Brain(["/path/to/brain1.nii","/path/to/brain2.nii"],8888) on multiple cells in a same notebook. I use your software to put up reports for fMRI analyses, and most of the times I use many cells to present results. Thus, plenty of orange T1s on top of functionals :)

Also, one thing I noticed (you may put it to another issue for future generations :) ). Your scripts create a folder with temporary files next to a notebook of interest. If you start jupyter-notebook (mine is from Anaconda installation on Ubuntu) from a different than the notebook folder, but still run the notebook, the files will not be rendered with 404 error.

dpaniukov avatar Dec 22 '16 21:12 dpaniukov

I think #9 actually fixes this exact problem? @dpaniukov give it a try with the latest master and let us know?

kastman avatar Jun 16 '17 18:06 kastman