Spaces:
Sleeping
Sleeping
Update Background_Substraction.py
Browse files
Background_Substraction.py
CHANGED
|
@@ -56,7 +56,7 @@ present_dir = os.path.dirname(os.path.realpath(__file__))
|
|
| 56 |
|
| 57 |
input_path = os.path.join(present_dir, 'wetransfer_data-zip_2024-05-17_1431')
|
| 58 |
base_dir = input_path
|
| 59 |
-
|
| 60 |
# Function to change permissions recursively with error handling
|
| 61 |
def change_permissions_recursive(path, mode):
|
| 62 |
for root, dirs, files in os.walk(path):
|
|
@@ -74,7 +74,7 @@ def change_permissions_recursive(path, mode):
|
|
| 74 |
|
| 75 |
change_permissions_recursive(base_dir, 0o777)
|
| 76 |
change_permissions_recursive('/code', 0o777)
|
| 77 |
-
|
| 78 |
set_path = 'test'
|
| 79 |
selected_metadata_files = ['Slide_B_DD1s1.one_1.tif.csv', 'Slide_B_DD1s1.one_2.tif.csv']
|
| 80 |
ls_samples = ['Ashlar_Exposure_Time.csv', 'new_data.csv', 'DD3S1.csv', 'DD3S2.csv', 'DD3S3.csv', 'TMA.csv']
|
|
|
|
| 56 |
|
| 57 |
input_path = os.path.join(present_dir, 'wetransfer_data-zip_2024-05-17_1431')
|
| 58 |
base_dir = input_path
|
| 59 |
+
'''
|
| 60 |
# Function to change permissions recursively with error handling
|
| 61 |
def change_permissions_recursive(path, mode):
|
| 62 |
for root, dirs, files in os.walk(path):
|
|
|
|
| 74 |
|
| 75 |
change_permissions_recursive(base_dir, 0o777)
|
| 76 |
change_permissions_recursive('/code', 0o777)
|
| 77 |
+
''''
|
| 78 |
set_path = 'test'
|
| 79 |
selected_metadata_files = ['Slide_B_DD1s1.one_1.tif.csv', 'Slide_B_DD1s1.one_2.tif.csv']
|
| 80 |
ls_samples = ['Ashlar_Exposure_Time.csv', 'new_data.csv', 'DD3S1.csv', 'DD3S2.csv', 'DD3S3.csv', 'TMA.csv']
|