kavli-ntnu / opexebo

Collection of python code for electrophysiology /ɪˌlɛktrəʊfɪzɪˈɒlədʒi/
MIT License
8 stars 7 forks source link

Borderscore returns masked constant or int #17

Open horsto opened 5 years ago

horsto commented 5 years ago

In very rare instances, borderscore calculation returns int ornp.ma.core.MaskedConstant instead of float. This messed with insertion into datajoint but otherwise doesn't have big consequences: I am reporting here just for completeness. I am helping myself by just calling np.array(shuffled_borderscores).astype(float) on the whole array before inserting into database. Screenshot 2019-09-06 at 17 39 07

simon-ball commented 5 years ago

Borderscore implementation is still experimental, and pretty much untested, so I would recommend avoiding it completelyfor now (same with Speedscore)