Open linshaova opened 6 months ago
yeah, was working on it in https://github.com/tlambert03/LLSpy/pull/43/files but it fell by the wayside since other things were getting more usage/activity. I'll try to pick it up again and get it across the finish line
hey @linshaova, could you do me a huge favor and test out the main branch for me? You can use anything up to python 3.11 (3.12 might work but haven't tested). Please try as per the readme, subbing in the github url for the install step. If everything imports ok for you and basic functionality works, I'll push a new release to PyPI. thanks!
conda create -n llsenv python=3.11 cudadecon
conda activate llsenv
pip install git+https://github.com/tlambert03/LLSpy.git
Hi Talley, thanks for your hard work! I was able to install llspy with python=3.11. When I tried to run fiducialreg
however, I got a very strange error (see below traceback). It looks like it got past the line in update_coords()
where the issue occurred last time. However, somehow self.autothresh()
at line 590 is called (which throws the error below) even though that line shouldn't have been reached because thresh == None
as far as I can tell (update_coords()
invoked at line 541).
Any clue?
Warning: Could not find scikit-tensor which is needed for separable approximations...
If you want to compute separable approximations, please install it with
pip install scikit-tensor-py3
Traceback (most recent call last):
File "F:\OneDriveSync\OneDrive - Yale University\DeCamilli Lab\Registration\RegCalib.py", line 37, in <module>
cloudset=fiducialreg.CloudSet(calib_list, labels=ims.wavelengths, dx=ims.dxy, dz=ims.dz, mincount=50)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ls977\Miniconda3\envs\llsenv_py311\Lib\site-packages\fiducialreg\fiducialreg.py", line 713, in __init__
FiducialCloud(
File "C:\Users\ls977\Miniconda3\envs\llsenv_py311\Lib\site-packages\fiducialreg\fiducialreg.py", line 541, in __init__
self.update_coords()
File "C:\Users\ls977\Miniconda3\envs\llsenv_py311\Lib\site-packages\fiducialreg\fiducialreg.py", line 590, in update_coords
thresh = self.autothresh()
^^^^^^^^^^^^^^^^^
File "C:\Users\ls977\Miniconda3\envs\llsenv_py311\Lib\site-packages\fiducialreg\fiducialreg.py", line 582, in autothresh
return get_thresh(self.filtered, mincount)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ls977\Miniconda3\envs\llsenv_py311\Lib\site-packages\fiducialreg\fiducialreg.py", line 101, in get_thresh
modecount = stats.mode(object_count[(object_count >= mincount)], axis=None).mode[0]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: invalid index to scalar variable.
please give it another try after running pip install git+https://github.com/tlambert03/LLSpy.git
again
(incompatibility with newer scipy)
Worked!
Thanks, will release shortly
Description
I haven't used
fiducialreg
for years. When I tried it recently and possibly after many updates of the underlying packages, there's now an error message when calling theblur
function (see below of the detailed traceback). It seems to come down tometadata
not available inimportlib
, which probably means Python 3.8 or above is needed for one of the packages?What I Did
I tried to reinstall
llspy
withpython=3.8
specified but found out there is an upper limit of <3.8 so this didn't go through. Could this upper limit be relaxed? Thanks!Traceback is here: