gnuastro-commits
[Top][All Lists]
Advanced

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

[gnuastro-commits] master 1c66b81f: MakeCatalog: value of --upmaskhdu co


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 1c66b81f: MakeCatalog: value of --upmaskhdu correctly printed on stdout
Date: Sat, 9 Sep 2023 19:39:45 -0400 (EDT)

branch: master
commit 1c66b81f13de1750bd2c3cbabe3a6ad5868599a4
Author: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>

    MakeCatalog: value of --upmaskhdu correctly printed on stdout
    
    Until now, MakeCatalog incorrectly printed the value to the '--hdu' option
    for the statement it printed on standard output. However, for the actual
    analysis, the correct HDU (from the correct file) was used. This was
    confusing!
    
    With this commit, the correct value of '--upmaskhud' is printed on standard
    output.
    
    This bug was reported by S. Zahra Hosseini Shahisavandi.
    
    This fixes bug #64643.
---
 NEWS                         | 3 +++
 bin/mkcatalog/ui.c           | 2 +-
 doc/announce-acknowledge.txt | 1 +
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index 9dc72672..3c5222e0 100644
--- a/NEWS
+++ b/NEWS
@@ -223,6 +223,9 @@ See the end of the file for license conditions.
   bug #64635: astscript-psf-stamp's '--snthresh' option produces fully NaN
               valued image when a saturated star is in the center. Found
               and fixed by Sepideh Eskandarlou.
+  bug #64643: MakeCatalog not reporting the actual '--upmaskhdu' that was
+              used on standard output. Found by S. Zahra Hosseini
+              Shahisavandi.
 
 
 
diff --git a/bin/mkcatalog/ui.c b/bin/mkcatalog/ui.c
index 6552c4a2..db4c8511 100644
--- a/bin/mkcatalog/ui.c
+++ b/bin/mkcatalog/ui.c
@@ -1993,7 +1993,7 @@ ui_read_check_inputs_setup(int argc, char *argv[],
 
       if(p->upmaskfile)
         printf("  - Upper limit magnitude mask: %s (hdu: %s)\n",
-               p->upmaskfile, p->cp.hdu);
+               p->upmaskfile, p->upmaskhdu);
       if(p->upperlimit)
         {
           printf("  - Random number generator name: %s\n", p->rng_name);
diff --git a/doc/announce-acknowledge.txt b/doc/announce-acknowledge.txt
index 3765fb41..d91609b5 100644
--- a/doc/announce-acknowledge.txt
+++ b/doc/announce-acknowledge.txt
@@ -7,6 +7,7 @@ Irene Pintos Castro
 Rashid Yaaqib
 Raul Infante-Sainz
 Ryan Begley
+S. Zahra Hosseini Shahisavandi
 Sepideh Eskandarlou
 Teet Kuumta
 Zahra Sharbaf



reply via email to

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