Threadbourne commited on
Commit
83c6e29
·
verified ·
1 Parent(s): 9ac02cf

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +4 -5
src/streamlit_app.py CHANGED
@@ -79,13 +79,15 @@ synth_band = make_band(df_synth)
79
  import plotly.graph_objects as go
80
 
81
  human_interp = np.interp(
82
- t_common,
 
83
  df_human["t_norm"].values,
84
  human_band[0]
85
  )
86
 
87
  synth_interp = np.interp(
88
- t_common,
 
89
  df_synth["t_norm"].values,
90
  synth_band[0]
91
  )
@@ -110,8 +112,5 @@ fig.update_layout(
110
  yaxis=dict(showticklabels=False),
111
  )
112
 
113
- COMMON_LEN = 500
114
- t_common = np.linspace(0, 1, COMMON_LEN)
115
-
116
  st.plotly_chart(fig, use_container_width=True)
117
 
 
79
  import plotly.graph_objects as go
80
 
81
  human_interp = np.interp(
82
+ COMMON_LEN = 500
83
+ t_common = np.linspace(0, 1, COMMON_LEN)
84
  df_human["t_norm"].values,
85
  human_band[0]
86
  )
87
 
88
  synth_interp = np.interp(
89
+ COMMON_LEN = 500
90
+ t_common = np.linspace(0, 1, COMMON_LEN)
91
  df_synth["t_norm"].values,
92
  synth_band[0]
93
  )
 
112
  yaxis=dict(showticklabels=False),
113
  )
114
 
 
 
 
115
  st.plotly_chart(fig, use_container_width=True)
116