nel-lab / mesmerize-core

High level pandas-based API for batch analysis of Calcium Imaging data using CaImAn
Other
60 stars 15 forks source link

problem with caiman.remove_item #273

Closed Jorgenhoyer closed 8 months ago

Jorgenhoyer commented 8 months ago

I am having problems removing items from the dataframe.

Using

caiman.remove_item("uuid", remove_data=True, safe_removal=True)

sets the entire dataframe to none.

Am I missing something here or is there an issue with the command?

kushalkolar commented 8 months ago

The uuid argument has to be a uuid

Jorgenhoyer commented 8 months ago

It is a uuid

kushalkolar commented 8 months ago

Can you provide more info, screenshot of the dataframe before and after? And the exact removal command you used.

Jorgenhoyer commented 8 months ago

no worries. problem solved using index. caiman.remove_item(index = n, remove_data=True, safe_removal=True) where n is: 0,1,2,3...n