petersaj / neuropixels_trajectory_explorer

Neuropixels trajectory explorer with the Allen CCF mouse atlas
GNU General Public License v3.0
62 stars 21 forks source link

Startup failure with standalone application when CCF atlas directory changed #22

Open wangxuanyu0419 opened 1 month ago

wangxuanyu0419 commented 1 month ago

Hi Peter! I had an issue with the deployed version of the Neuropixels trajectory explorer. I moved the CCF files to another directory because I ran out of disk storage. However, the software does not start with a relocation request but terminates with the following error:

File not found: xxxxx\template_volume_10um.npy
Error in => neuropixels_trajectory_explorer.m at line 80

I tried to reinstall the software, or change the nte_paths.mat under ./nte_deployed. Neither worked. I wonder where is the file location cashed and can I remove this history?

petersaj commented 1 month ago

Hi Xuanyu - just checking: do you mean the deployed version (e.g. without Matlab, the undeployed version run through Matlab just needs the folder with the CCF to be added to the Matlab path)?

I've uploaded a fix where it checks for the files and asks for the path again if it can't find them - do you want to update and see if the problem is fixed for you?

wangxuanyu0419 commented 1 month ago

Thank you for your reply! Oh sorry for the typo, I mean the deployed version (.exe). Did you just fix the matlab .m file? It would be helpful to also fix the .exe.

petersaj commented 1 month ago

Yes, I fixed the .exe file (that's the deployed version) for for the issue you mentioned, if you wanted to update the code and try it

wangxuanyu0419 commented 1 month ago

Sadly, I still got the same error. I uninstalled it via the Windows control panel and pulled it locally, reinstalled it with the .exe. The error message was still there.

wangxuanyu0419 commented 1 month ago

The undeployed version was working fine.

petersaj commented 1 month ago

Oops apologies, I forgot to copy the updated installer into the main page - I've done that now, do you want to try again?

wangxuanyu0419 commented 1 month ago

Yes, all set! Thank you!

wangxuanyu0419 commented 1 month ago

Somehow I have issue opening it after reinstalled with the new executive file. It runs but stays in the background, taking up CPU and memory resources but no window is opened. I retrieved from the last commit 6d8c3b8 and was working fine.

petersaj commented 1 month ago

I think I found the issue - could you pull the latest version and try again?