Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux run result file not readable in windows gui #1360

Open
lsookie opened this issue Jun 8, 2024 · 5 comments
Open

linux run result file not readable in windows gui #1360

lsookie opened this issue Jun 8, 2024 · 5 comments

Comments

@lsookie
Copy link

lsookie commented Jun 8, 2024

I don't know why it runs extra slow on windows (i9, 32g; RTX1060), not sure if it's the configuration.
Then I tried to run it on another computer and it was slightly faster (linux, 3090), but the results of the run I got an error when I viewed it on windows using the gui.

E:\fangjie\calcuim_image\calman\caiman_gui.py:32: DeprecationWarning: magic(...) is deprecated since IPython 0.13 (warning added in 8.1), use run_line_magic(magic_name, parameter_s).
get_ipython().magic('load_ext autoreload')
E:\fangjie\calcuim_image\calman\caiman_gui.py:33: DeprecationWarning: magic(...) is deprecated since IPython 0.13 (warning added in 8.1), use run_line_magic(magic_name, parameter_s).
get_ipython().magic('autoreload 2')
Traceback (most recent call last):
File "D:\anaconda\envs\ca1\envs\caiman\lib\site-packages\IPython\core\interactiveshell.py", line 3550, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
runfile('E:\fangjie\calcuim_image\calman\caiman_gui.py', wdir='E:\fangjie\calcuim_image\calman')
File "D:\PyCharm 2024.1.2\plugins\python\helpers\pydev_pydev_bundle\pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "D:\PyCharm 2024.1.2\plugins\python\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "E:\fangjie\calcuim_image\calman\caiman_gui.py", line 73, in
mov = caiman.load(cnm_obj.mmap_file)
File "D:\anaconda\envs\ca1\envs\caiman\lib\site-packages\caiman\base\movies.py", line 1701, in load
Yr, dims, T = load_memmap(
File "D:\anaconda\envs\ca1\envs\caiman\lib\site-packages\caiman\mmapping.py", line 59, in load_memmap
d1, d2, d3, T, order = int(fpart[-9]), int(fpart[-7]), int(fpart[-5]), int(fpart[-1]), fpart[-3]
ValueError: invalid literal for int() with base 10: 'd1'

@pgunn
Copy link
Member

pgunn commented Jun 8, 2024

I'm reminded how ugly (and fragile-looking) that filename-parsing logic is; eventually we'll want to get away from encoding parameters like that in the filename and store them in json or something like that.

I haven't used the caiman_gui.py program for a long time (generally the jupyter notebooks are a better choice for visualisation). I'm guessing the file/path changes a few releases back broke this because I forgot to make corresponding changes to the gui. I'll look at this early next week; I suspect the fix won't be too hard. Sorry for the fuss.

@pgunn
Copy link
Member

pgunn commented Jun 10, 2024

Hi,
I have time to look at this now, but I'm realising I don't know exactly the process you were using to get this - what notebook/script were you running before you continued with the caiman_gui program?

@pgunn
Copy link
Member

pgunn commented Jun 10, 2024

Also, what are the filenames of the hdf5 and mmap files you're trying to load? And what versions of caiman are you using on both the Windows and Linux side?

@lsookie
Copy link
Author

lsookie commented Jun 12, 2024 via email

@pgunn
Copy link
Member

pgunn commented Jul 1, 2024

Sorry for the delay in getting back to you; was out of the country for a scientific conference.

What are the filenames you were trying to load, and what versions of caiman are present on your linux side and the windows side?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants