Skip to content

Commit 16039a3

Browse files
committed
improve title for draw session
1 parent e9f0aee commit 16039a3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

code/Home.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,10 @@ def draw_session_plots(df_to_draw_session):
110110
except:
111111
date_str = key["session_date"].split("T")[0]
112112

113-
st.markdown(f'''<h5 style='text-align: center; color: orange;'>{key["subject_id"]} ({key["PI"]}), Session {int(key["session"])}, {date_str} '''
114-
f'''({key["trainer"]}@{key["data_source"]})''',
113+
st.markdown(f'''<h6 style='text-align: center; color: orange;'>{key["subject_id"]} ({key["PI"]}), {date_str}, Session {int(key["session"])}<br>'''
114+
f'''{key["trainer"]} @ {key["rig"]} ({key["data_source"]})''',
115115
unsafe_allow_html=True)
116+
116117
if len(st.session_state.session_plot_selected_draw_types) > 1: # more than one types, use the pre-defined layout
117118
for row, column_setting in enumerate(draw_type_layout_definition):
118119
rows.append(this_major_col.columns(column_setting))

code/util/aws_s3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ def draw_session_plots_quick_preview(df_to_draw_session):
9797
except:
9898
date_str = key["session_date"].split("T")[0]
9999

100-
st.markdown(f'''<h5 style='text-align: center; color: orange;'>{key["subject_id"]} ({key["PI"]}), Session {int(key["session"])}, {date_str} '''
101-
f'''({key["trainer"]}@{key["data_source"]})''',
100+
st.markdown(f'''<h6 style='text-align: center; color: orange;'>{key["subject_id"]} ({key["PI"]}), {date_str}, Session {int(key["session"])}<br>'''
101+
f'''{key["trainer"]} @ {key["rig"]} ({key["data_source"]})''',
102102
unsafe_allow_html=True)
103103

104104
rows = []

0 commit comments

Comments
 (0)