Skip to content
Snippets Groups Projects

Changing generation of pseudodata

Closed Emanuele Roberto Nocera requested to merge test_new_sampling into new_thcovmat_test
1 file
+ 1
3
Compare changes
  • Side-by-side
  • Inline
@@ -225,9 +225,7 @@ def make_replica(
#Shifting pseudodata
shifted_pseudodata = (all_pseudodata + shifts)*mult_part
#positivity control
for index,dat in enumerate(shifted_pseudodata[full_mask]):
if dat < 0.:
shifted_pseudodata[index] = np.abs(dat)
shifted_pseudodata[full_mask] = np.abs(shifted_pseudodata[full_mask])
return shifted_pseudodata
Loading