KashyapiNagaHarshitha commited on
Commit
c570dbe
·
verified ·
1 Parent(s): cb87341

Update Background_Substraction.py

Browse files
Files changed (1) hide show
  1. Background_Substraction.py +1 -22
Background_Substraction.py CHANGED
@@ -1045,25 +1045,4 @@ app2 = pn.template.GoldenTemplate(
1045
  # In[66]:
1046
 
1047
 
1048
- app2.servable()
1049
-
1050
-
1051
- # ## II.8. SAVE
1052
-
1053
- # In[67]:
1054
-
1055
-
1056
- # Save the data by Sample_ID
1057
- # Check for the existence of the output file first
1058
- for sample in ls_samples:
1059
- sample_id = sample.split('_')[0]
1060
- filename = os.path.join(output_data_dir, sample_id + "_" + step_suffix + ".csv")
1061
- if os.path.exists(filename):
1062
- print("File by name "+filename+" already exists.")
1063
- else:
1064
- sample_id_csv = sample_id + '.csv'
1065
- df_save = df.loc[df['Sample_ID'] == sample_id_csv, :]
1066
- #print(df_save)
1067
- filename = os.path.join(output_data_dir, sample_id + "_" + step_suffix + ".csv")
1068
- df_save.to_csv(filename, index=True, index_label='ID') # Set index parameter to True to retain the index column
1069
- print("File " + filename + " was created!")
 
1045
  # In[66]:
1046
 
1047
 
1048
+ app2.servable()