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

BUG: Value error after manual labelling extraction #1127

Open
Nique19351 opened this issue Jun 13, 2024 · 1 comment
Open

BUG: Value error after manual labelling extraction #1127

Nique19351 opened this issue Jun 13, 2024 · 1 comment

Comments

@Nique19351
Copy link

Describe the issue:

I recently began using suite2p to identify cells after 2 photon imaging. But, after manually labelling and trying to extract the ROIs, I receive an error message regarding the frames of the file. Is there anything I can do to move forward without erasing my progress?

Reproduce the code example:

I didn't write any code, only tried to extract ROIs after manually labelling.

Error message:

Traceback (most recent call last):
  File "/opt/anaconda3/envs/suite2p/lib/python3.9/site-packages/suite2p/gui/drawroi.py", line 448, in proc_ROI
    F, Fneu, F_chan2, Fneu_chan2, spks, ops, stat = masks_and_traces(
  File "/opt/anaconda3/envs/suite2p/lib/python3.9/site-packages/suite2p/gui/drawroi.py", line 56, in masks_and_traces
    F, Fneu, F_chan2, Fneu_chan2 = extract_traces_from_masks(ops, manual_cell_masks,
  File "/opt/anaconda3/envs/suite2p/lib/python3.9/site-packages/suite2p/extraction/extract.py", line 145, in extract_traces_from_masks
    with BinaryFile(Ly=ops["Ly"], Lx=ops["Lx"], filename=ops["reg_file"]) as f:
  File "/opt/anaconda3/envs/suite2p/lib/python3.9/site-packages/suite2p/io/binary.py", line 36, in __init__
    raise ValueError(
ValueError: need to provide number of frames n_frames when writing file

Version information:

Latest version

Context for the issue:

No response

@simo-91
Copy link

simo-91 commented Jul 22, 2024

Hi,
are you working on two different machines by any chance? I used to get that error when manually addind ROIs on my macOS after processing on Linux Mint.

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