From 8ae1b5cb55bf9eecf1fce6559118ca7c13afd710 Mon Sep 17 00:00:00 2001
From: Nicolas Barthes <nicolas.barthes@cnrs.fr>
Date: Fri, 9 Aug 2024 12:40:23 +0200
Subject: [PATCH] fixed datasets folder into Report/

---
 src/Report/datasets/.gitignore   | 2 ++
 src/pages/1-samples_selection.py | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
 create mode 100644 src/Report/datasets/.gitignore

diff --git a/src/Report/datasets/.gitignore b/src/Report/datasets/.gitignore
new file mode 100644
index 0000000..b3eae1b
--- /dev/null
+++ b/src/Report/datasets/.gitignore
@@ -0,0 +1,2 @@
+*           # git ignore tous les fichiers
+!.gitignore # sauf celui-ci
\ No newline at end of file
diff --git a/src/pages/1-samples_selection.py b/src/pages/1-samples_selection.py
index 0c06b2b..893634e 100644
--- a/src/pages/1-samples_selection.py
+++ b/src/pages/1-samples_selection.py
@@ -305,7 +305,7 @@ elif labels:
                 #### Strategy 1
                 case 'random':
                     selection_number = scores.number_input('How many samples per cluster?',
-                                                            min_value = 1, step=1, value = 3)
+                                                            min_value = 1, step=1, value = round(n_samples*0.1))
                     s = np.array(labels)[np.where(np.array(labels) !='Non clustered')[0]]
                     for i in np.unique(s):
                         C = np.where(np.array(labels) == i)[0]
-- 
GitLab