gnuastro-commits
[Top][All Lists]
Advanced

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

[gnuastro-commits] master 31141f3 2/2: Corrected name of true initial de


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 31141f3 2/2: Corrected name of true initial det. in NoiseChisel check image
Date: Sun, 9 Sep 2018 09:50:01 -0400 (EDT)

branch: master
commit 31141f322766259cf25898c5317182ad94f63b9c
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>

    Corrected name of true initial det. in NoiseChisel check image
    
    When setting the extension name of the second-last extension name (of true
    initial detections) in NoiseChisel's check image, we were mistakenly
    setting a name on the wrong dataset (`p->olabel' instead of
    `workbin'). This mistake is corrected with this commit.
---
 bin/noisechisel/detection.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/noisechisel/detection.c b/bin/noisechisel/detection.c
index 5b897ca..e179d69 100644
--- a/bin/noisechisel/detection.c
+++ b/bin/noisechisel/detection.c
@@ -1155,10 +1155,10 @@ detection(struct noisechiselparams *p)
   num_true_initial=detection_remove_false_initial(p, workbin);
   if(p->detectionname)
     {
-      p->olabel->name="DETECTIONS-INIT-TRUE";
+      workbin->name="DETECTIONS-INIT-TRUE";
       gal_fits_img_write(workbin, p->detectionname, NULL,
                          PROGRAM_NAME);
-      p->olabel->name=NULL;
+      workbin->name=NULL;
     }
   if(!p->cp.quiet)
     {



reply via email to

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