From 3b26bad116e5782dcf832dcf61c594b9c9852179 Mon Sep 17 00:00:00 2001
From: STEVAN Antoine <antoine.stevan@isae-supaero.fr>
Date: Thu, 30 May 2024 14:59:14 +0000
Subject: [PATCH] fix experiment hash by not hashing _measurement schedule_
 (dragoon/komodo!133)

related to
- #9

in order for the measurements not to influence the experiment, the seeds passed to the runs need to not include the _measurement schedule_ parameters!

EDIT: in the end, it's more than that, we want to only include things related to the environment in its hash, nothing related to the measurements, i.e. we want to either
- exclude `strategies`, `nb_scenarii`, `measurement_schedule`, `measurement_schedule_start`, `nb_measurements` and `max_t`
- include `nb_bytes`, `k`, `n` and `environment`
---
 bins/inbreeding/run.nu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bins/inbreeding/run.nu b/bins/inbreeding/run.nu
index 82eb6084..59610af7 100644
--- a/bins/inbreeding/run.nu
+++ b/bins/inbreeding/run.nu
@@ -69,7 +69,7 @@ export def main [
         }
     }
 
-    let exp_hash = $options | reject strategies | sort | to nuon | hash sha256
+    let exp_hash = $options | select nb_bytes k n environment | sort | to nuon | hash sha256
 
     for s in $options.strategies {
         let output_dir = [
-- 
GitLab