Closed resatomo closed 1 year ago
please move the connection to open_ephys inside the class somewhere so it doesn't get called until you instantiate a RecordNeuropixels() instance. you can put it in
__init__()
if you want to keep the code looking similar, i.e. something likedef __init__(self, *args, **kwargs): gui = OpenEphysHTTPServer(IP_neuropixel, timeout=0.5) parent_dir = 'E://Neuropixel_data' gui.set_parent_dir(parent_dir) super().__init__(*args, **kwargs)
I tried to do this, but it didn't work. I didn't know how to get gui
inside __init__
from pre_init
. Because pre_init
is a class method, it couldn't access gui
inside __init__
. So, I only moved gui.set_parent_dir
to pre_init
, as I mentioned above.
Added neuropixel feature to record data with neuropixels