gnuastro-commits
[Top][All Lists]
Advanced

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

[gnuastro-commits] master a985b20: Correct index array for clumps when c


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master a985b20: Correct index array for clumps when checking S/N table
Date: Mon, 4 Sep 2017 21:03:34 -0400 (EDT)

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

    Correct index array for clumps when checking S/N table
    
    In `clumps_true_find_sn_thresh', we have to use `GAL_TYPE_INT32' directly
    instead of relying on `clprm.snind->type'. This is because of a recent
    correction in `clumps_make_sn_table', where we stop continuing the function
    when `cltprm->numinitclumps==0' (so `clprm.snind->type' was not initialized
    and remained as zero which is an un-recognized type code).
---
 bin/noisechisel/clumps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/noisechisel/clumps.c b/bin/noisechisel/clumps.c
index fcc7524..e2a5d9c 100644
--- a/bin/noisechisel/clumps.c
+++ b/bin/noisechisel/clumps.c
@@ -1303,7 +1303,7 @@ clumps_true_find_sn_thresh(struct noisechiselparams *p)
                     p->cp.minmapsize, "CLUMP_S/N", "ratio",
                     "Signal-to-noise ratio");
   snind = ( p->checkclumpsn
-            ? gal_data_alloc(NULL, clprm.snind->type, 1, &numsn, NULL, 0,
+            ? gal_data_alloc(NULL, GAL_TYPE_INT32, 1, &numsn, NULL, 0,
                              p->cp.minmapsize, "CLUMP_ID", "counter",
                              "Unique ID for this clump.")
             : NULL );



reply via email to

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