Open cxrodgers opened 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
/data/TASK_NAME/S00_STEPNAME/session_N
/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).
_data_thread
For an example of a fix, see here: https://github.com/Rodgers-PAC-Lab/autopilot/blob/20decc5168ba2613f973a4c044101542dee47879/autopilot/data/subject.py#L820
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