michaelschaub / calcium-imaging-analysis

3 stars 1 forks source link

load_task_data_as_pandas_df doesn't work in jupyter notebook #7

Closed DaminK closed 3 years ago

DaminK commented 3 years ago
IndexError                                Traceback (most recent call last)
<ipython-input-6-ba732be6aa44> in <module>
      3 if (not (data_path/'extracted_data.pkl').exists()):
      4     # load behavior data
----> 5     sessions = load_task_data_as_pandas_df.extract_session_data_and_save(root_paths=[data_path], mouse_ids=["GN06"], reextract=False)
      6     with open( data_path / 'extracted_data.pkl', 'wb') as handle:
      7         pkl.dump(sessions, handle)

C:\Master\Calcium_Analysis\code\loading\load_task_data_as_pandas_df.py in extract_session_data_and_save(root_paths, mouse_ids, reextract)
    166                     sessions = sessions.append(pd.DataFrame.from_dict(data), ignore_index=True)
    167                 #
--> 168             print(f"Processed {date_paths[-1]} ({n_paths}/{n_paths})")
    169             #
    170 

IndexError: list index out of range
DaminK commented 3 years ago

Works now