Spaces:
Sleeping
Sleeping
Update Background_Substraction.py
Browse files- Background_Substraction.py +6 -21
Background_Substraction.py
CHANGED
|
@@ -19,10 +19,8 @@ from scipy import signal
|
|
| 19 |
import plotly.figure_factory as ff
|
| 20 |
import plotly
|
| 21 |
import plotly.graph_objs as go
|
| 22 |
-
from plotly.offline import download_plotlyjs,
|
| 23 |
import plotly.express as px
|
| 24 |
-
init_notebook_mode(connected = True)
|
| 25 |
-
|
| 26 |
from my_modules import *
|
| 27 |
|
| 28 |
|
|
@@ -34,24 +32,6 @@ warnings.filterwarnings('ignore', category= FutureWarning)
|
|
| 34 |
warnings.filterwarnings('ignore', category= UserWarning)
|
| 35 |
|
| 36 |
|
| 37 |
-
# In[3]:
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
get_ipython().run_line_magic('store', '-r base_dir')
|
| 41 |
-
get_ipython().run_line_magic('store', '-r set_path')
|
| 42 |
-
get_ipython().run_line_magic('store', '-r ls_samples')
|
| 43 |
-
get_ipython().run_line_magic('store', '-r selected_metadata_files')
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
# In[4]:
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
print(base_dir)
|
| 50 |
-
print(set_path)
|
| 51 |
-
print(ls_samples)
|
| 52 |
-
print(selected_metadata_files)
|
| 53 |
-
|
| 54 |
-
|
| 55 |
# ## II.2. *DIRECTORIES
|
| 56 |
|
| 57 |
# In[5]:
|
|
@@ -74,6 +54,11 @@ print(selected_metadata_files)
|
|
| 74 |
#set_name = 'Set_A'
|
| 75 |
#set_name = 'test'
|
| 76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
set_name = set_path
|
| 78 |
|
| 79 |
|
|
|
|
| 19 |
import plotly.figure_factory as ff
|
| 20 |
import plotly
|
| 21 |
import plotly.graph_objs as go
|
| 22 |
+
from plotly.offline import download_plotlyjs, plot
|
| 23 |
import plotly.express as px
|
|
|
|
|
|
|
| 24 |
from my_modules import *
|
| 25 |
|
| 26 |
|
|
|
|
| 32 |
warnings.filterwarnings('ignore', category= UserWarning)
|
| 33 |
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
# ## II.2. *DIRECTORIES
|
| 36 |
|
| 37 |
# In[5]:
|
|
|
|
| 54 |
#set_name = 'Set_A'
|
| 55 |
#set_name = 'test'
|
| 56 |
|
| 57 |
+
base_dir = 'wetransfer_data-zip_2024-05-17_1431/'
|
| 58 |
+
set_path = 'test'
|
| 59 |
+
selected_metadata_files = ['Slide_B_DD1s1.one_1.tif.csv', 'Slide_B_DD1s1.one_2.tif.csv']
|
| 60 |
+
ls_samples = ['Ashlar_Exposure_Time.csv', 'new_data.csv', 'DD3S1.csv', 'DD3S2.csv', 'DD3S3.csv', 'TMA.csv']
|
| 61 |
+
|
| 62 |
set_name = set_path
|
| 63 |
|
| 64 |
|