Arts-of-coding commited on
Commit
c9af955
1 Parent(s): dcb9225

Update dash_plotly_QC_scRNA.py

Browse files
Files changed (1) hide show
  1. dash_plotly_QC_scRNA.py +3 -5
dash_plotly_QC_scRNA.py CHANGED
@@ -48,8 +48,7 @@ storage_options={'account_name': AZURE_STORAGE_ACCOUNT, 'account_key': AZURE_STO
48
  #azfs = AzureBlobFileSystem(**storage_options )
49
 
50
  # Load in multiple dataframes
51
- df = None
52
- df1 = pl.read_parquet(filepath, storage_options=storage_options)
53
 
54
  # Setup the app
55
  external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
@@ -76,9 +75,8 @@ tab0_content = html.Div([
76
 
77
  def update_filepath(dataset_chosen):
78
  global df
79
- if f"az://data10xflex/{dataset_chosen}.parquet" == filepath:
80
- df = df1
81
- if f"az://data10xflex/{dataset_chosen}.parquet" != filepath:
82
  df2 = pl.read_parquet(f"az://data10xflex/{dataset_chosen}.parquet", storage_options=storage_options)
83
  df = df2
84
  return
 
48
  #azfs = AzureBlobFileSystem(**storage_options )
49
 
50
  # Load in multiple dataframes
51
+ df = pl.read_parquet(filepath, storage_options=storage_options)
 
52
 
53
  # Setup the app
54
  external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
 
75
 
76
  def update_filepath(dataset_chosen):
77
  global df
78
+ if str(f"az://data10xflex/{dataset_chosen}.parquet") != str(filepath):
79
+ print("not identical filepath, chosing other")
 
80
  df2 = pl.read_parquet(f"az://data10xflex/{dataset_chosen}.parquet", storage_options=storage_options)
81
  df = df2
82
  return