cortex-lab / Suite2P

Tools for processing 2P recordings
Other
121 stars 66 forks source link

GetRandFrames when not using standard folder structure #120

Closed ransona closed 6 years ago

ransona commented 6 years ago

Hi again, I've run into what seems to be another small bug which comes up on line 75 of GetRandFrames (if ismember(ops.expts(k), getOr(ops, 'expred', []))) if you try to run registration when you've provided the full path to the tif files. i.e. with a make_db as below, which was adapted from one of the examples:

db(i).mouse_name = 'notImportant'; db(i).date = '2016'; db(i).expts = []; % leave empty, or specify subfolders as numbers db(i).diameter = 12; db(i).RootDir = 'E:\DataTemp\CFAR075\2016-10-12\2'; % specify full path to tiffs here

The error it gives is: Reference to non-existent field 'expts'.

Error in GetRandFrames (line 75) if ismember(ops.expts(k), getOr(ops, 'expred', []))

Thanks Adam

horsto commented 6 years ago

Same issue here. db(i).expts = []; % leave empty, or specify subfolders as numbers db.expts cannot be empty.

carsen-stringer commented 6 years ago

thanks for pointing this out, it's been fixed now, let me know if it still gives you problems

ransona commented 6 years ago

great thanks, will give it a try.

On Mon, Jun 4, 2018 at 3:25 PM, carsen-stringer notifications@github.com wrote:

thanks for pointing this out, it's been fixed now, let me know if it still gives you problems

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cortex-lab/Suite2P/issues/120#issuecomment-394373406, or mute the thread https://github.com/notifications/unsubscribe-auth/AHfEaop8-8RO9IKL2PhPKimcunFAcCkxks5t5UM-gaJpZM4STsVA .