@@ -55,10 +55,13 @@ def plot_manager_all_progress_bokeh_source(
5555 df_to_draw ["edge_color" ] = ( # Use grey edge to indicate stage without suggestion
5656 df_to_draw ["current_stage_suggested" ].map (stage_color_mapper ).fillna ("#d3d3d3" )
5757 )
58+
59+ # Convert session_date to string for URL generation
60+ df_to_draw ["session_date_str" ] = df_to_draw ["session_date" ].astype (str )
5861 df_to_draw ["imgs_1" ] = df_to_draw .apply (
5962 lambda x : get_s3_public_url (
6063 subject_id = x ["subject_id" ],
61- session_date = x ["session_date " ],
64+ session_date = x ["session_date_str " ],
6265 nwb_suffix = x ["nwb_suffix" ],
6366 figure_suffix = "choice_history.png" ,
6467 ),
@@ -67,7 +70,7 @@ def plot_manager_all_progress_bokeh_source(
6770 df_to_draw ["imgs_2" ] = df_to_draw .apply (
6871 lambda x : get_s3_public_url (
6972 subject_id = x ["subject_id" ],
70- session_date = x ["session_date " ],
73+ session_date = x ["session_date_str " ],
7174 nwb_suffix = x ["nwb_suffix" ],
7275 figure_suffix = "logistic_regression_Su2022.png" ,
7376 ),
0 commit comments