These are chat archives for glue-viz/glue-vispy-viewers
selec_vol1 = floodfill_scipy(formate_data, pos, threshold).astype(float) * 5
@astrofrog I thought
floodfill_scipywill return a mask, why here needs to assign the type and multiply 5?
filled valueas 5, coz the selected value within mask is 1?
git addI found there are a lot of
.pycfiles, can I use
git add -ubut not include those files? Or I have to pick them out?
.pycfiles, you need to have a
.gitignorefile in the repository like for the 3d plugin and the core glue code. Copy over the .gitignore file from either of those into the 3d-selection repository and add it, then in future pyc files (and other temporary files) won't get included.
trpos1 = tr.map((200, 200, -1)) trpos2 = tr.map((200, 200, +1))
@astrofrog Got stuck by the code now :(
1) I replaced the pos (200, 200) with the cursor pos while get a very strange result as
array([ 290118.3044098 , 189476.07831809, -71702.92848027]), array([-54.78598907, -11.96209552, 73.30331083])
2) there are a lot of
numpy.darraytype problems… I don’t understand why my code produces those darrays even for the simple 3-dim array…