From 2fd6f15dbeac12fad44810a9c317d0dbd2e5ba4b Mon Sep 17 00:00:00 2001
From: Mahmoud Bentriou <mahmoud.bentriou@centralesupelec.fr>
Date: Tue, 2 Feb 2021 00:43:24 +0100
Subject: [PATCH] fix outfile abc

---
 algorithms/abc_smc.jl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/algorithms/abc_smc.jl b/algorithms/abc_smc.jl
index 098ce7e..c439488 100644
--- a/algorithms/abc_smc.jl
+++ b/algorithms/abc_smc.jl
@@ -35,7 +35,7 @@ function automaton_abc(pm::ParametricModel; nbr_particles::Int = 100, alpha::Flo
     @assert kernel_type in ["mvnormal", "knn_mvnormal"]
     if dir_results != nothing
         dir_results = basename(dir_results) != "" ? dir_results * "/" : dir_results 
-        file_cfg = open(dir_results * "results.out", "w")
+        file_cfg = open(dir_results * "results_abc.out", "w")
         write(file_cfg, "ParametricModel : $(pm) \n")
         write(file_cfg, "Number of particles : $(nbr_particles) \n")
         write(file_cfg, "alpha : $(alpha) \n")
@@ -74,7 +74,7 @@ function abc_smc(pm::ParametricModel, l_obs::AbstractVector, func_dist::Function
     @assert kernel_type in ["mvnormal", "knn_mvnormal"]
     if dir_results != nothing
         dir_results = basename(dir_results) != "" ? dir_results * "/" : dir_results 
-        file_cfg = open(dir_results * "results.out", "w")
+        file_cfg = open(dir_results * "results_abc.out", "w")
         write(file_cfg, "Configuration of ABC algorithm\n")
         write(file_cfg, "ParametricModel : $(pm) \n")
         write(file_cfg, "Number of particles : $(nbr_particles) \n")
-- 
GitLab