Issue for data preprocess step2 : datetime.datetime is not subscriptable
@langguth1 ,I think there is still a little issue for data preprocessing step. The issue as below
Traceback (most recent call last): File "../main_scripts/main_preprocess_data_step2.py", line 113, in main() File "../main_scripts/main_preprocess_data_step2.py", line 101, in main ins2.read_pkl_and_save_tfrecords(year=year, month=my_rank) File "/p/home/jusers/gong1/hdfml/bing/2ambs/ambs/video_prediction_tools/data_preprocess/preprocess_data_step2.py", line 217, in read_pkl_and_save_tfrecords t_start = ERA5Pkl2Tfrecords.ensure_datetime(T_train[X_start][0]) TypeError: 'datetime.datetime' object is not subscriptable
The T_train[X_start] should be a datetime object not a list. I remove [0] everythign works. please confirm this if I am right? Many thanks.