From 671d56b785ac84beecce790812d42a1cd8b86c82 Mon Sep 17 00:00:00 2001
From: achiefa <amedeochiefa@gmail.com>
Date: Thu, 16 May 2024 11:55:38 +0100
Subject: [PATCH] Removing positivity constraint

---
 validphys2/src/validphys/pseudodata.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/validphys2/src/validphys/pseudodata.py b/validphys2/src/validphys/pseudodata.py
index 3a527d5e83..a32cbb88f7 100644
--- a/validphys2/src/validphys/pseudodata.py
+++ b/validphys2/src/validphys/pseudodata.py
@@ -265,8 +265,8 @@ def make_replica(
         # Shifting pseudodata
         shifted_pseudodata = (all_pseudodata + shifts) * mult_part
         # positivity control
-        if np.all(shifted_pseudodata[full_mask] >= 0):
-            return shifted_pseudodata
+        #if np.all(shifted_pseudodata[full_mask] >= 0):
+        return shifted_pseudodata
 
     dfail = " ".join(i.setname for i in groups_dataset_inputs_loaded_cd_with_cuts)
     log.error(f"Error generating replicas for the group: {dfail}")
-- 
GitLab