gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master 6a81c59 3/3: Range of random samples printed i


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 6a81c59 3/3: Range of random samples printed in output catalog
Date: Mon, 30 Oct 2017 14:36:16 -0400 (EDT)

branch: master
commit 6a81c596156e22c521f2ffc1a76ed6b84afc0820
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>

    Range of random samples printed in output catalog
    
    In the previous commits, the `--uprange' option was added to MakeProfiles
    to specify a range for random values. But these important numbers weren't
    written into the output's comments for the users to be able to
    reproduce/understand the results. With this commit, when `--uprange' is
    specified, the values given to it are also printed as one comment line in
    the output.
---
 bin/mkcatalog/mkcatalog.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/bin/mkcatalog/mkcatalog.c b/bin/mkcatalog/mkcatalog.c
index 25fcce6..e182be9 100644
--- a/bin/mkcatalog/mkcatalog.c
+++ b/bin/mkcatalog/mkcatalog.c
@@ -819,6 +819,13 @@ mkcatalog_outputs_same_start(struct mkcatalogparams *p, 
int o0c1,
       asprintf(&str, "Number of random samples: %zu", p->upnum);
       gal_list_str_add(&comments, str, 0);
 
+      if(p->uprange)
+        {
+          asprintf(&str, "Range of random samples about target: %zu, %zu",
+                   p->uprange[1], p->uprange[0]);
+          gal_list_str_add(&comments, str, 0);
+        }
+
       asprintf(&str, "Random number generator name: %s", p->rngname);
       gal_list_str_add(&comments, str, 0);
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]