auto-pi-lot / autopilot

Distributed behavioral experiments
https://docs.auto-pi-lot.com
Mozilla Public License 2.0
93 stars 24 forks source link

_prepare_continuous_data doesn't return correct path #187

Open cxrodgers opened 2 years ago

cxrodgers commented 2 years ago

As written, the v0.5 of _prepare_continuous_data return a path called something like /data/TASK_NAME/S00_STEPNAME/session_N instead of /data/TASK_NAME/S00_STEPNAME/continuous_data/session_N

The problem is here: https://github.com/auto-pi-lot/autopilot/blob/04b5968ba02c8a1413a27eb6a138b6a186b130f1/autopilot/data/subject.py#L787 The node is correctly created but the wrong path is returned (and then sent to _data_thread, causing problems).

For an example of a fix, see here: https://github.com/Rodgers-PAC-Lab/autopilot/blob/20decc5168ba2613f973a4c044101542dee47879/autopilot/data/subject.py#L820