@@ -235,8 +235,7 @@ def display_click_data(clickData):
235235 if clickData is None :
236236 return ''
237237
238- # Extracting the relevant data from clickData
239- point_info = clickData ['points' ][0 ] # Get the first point data
238+ point_info = clickData ['points' ][0 ]
240239
241240 # Extract UMAP coordinates
242241 umap_1 = point_info ['x' ]
@@ -282,21 +281,19 @@ def create_mol_plot(smiles):
282281 Output ('basic-interactions' , 'figure' ),
283282 Output ('update-button' , 'n_clicks' ),
284283 Input ('update-button' , 'n_clicks' ),
285- Input ('d-input' , 'value' ), # Get the input value for Target
286- Input ('m-input' , 'value' ), # Get the input value for Min. Size
284+ Input ('d-input' , 'value' ),
285+ Input ('m-input' , 'value' ),
287286 Input ('e-input' , 'value' ),
288287 Input ('strict-options' , 'value' ),
289288 Input ('w-options' , 'value' ),
290289 Input ('weight' , 'value' ),
291290 Input ('basic-interactions' , 'figure' ),
292- prevent_initial_call = True , # Get the input value for Epsilon
291+ prevent_initial_call = True ,
293292 )
294293 def update_plot (n_clicks , t_value , m_value , e_value , s_value , w_bool , w_val , figure ):
295294 # Validate that all input values are provided
296- print (t_value ,m_value ,e_value )
297295 if not n_clicks is None :
298296 if n_clicks > 0 and None not in (t_value , m_value , e_value ):
299- print ('hello' )
300297 d_weight ,v_weight = None , None
301298 if s_value == 'STRICT2' :
302299 strict = True
@@ -335,9 +332,7 @@ def update_plot(n_clicks, t_value, m_value, e_value, s_value, w_bool, w_val, fig
335332 return fig , None
336333 return figure , None
337334 else :
338- print (figure )
339335 return figure , None
340- print ('did not return right' )
341336
342337 @app .callback (
343338 Output ('rdkit-display' , 'src' ),
0 commit comments