gnuastro-commits
[Top][All Lists]
Advanced

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

[gnuastro-commits] master 2d08166: Arithmetic: the interpmetric option i


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 2d08166: Arithmetic: the interpmetric option is not ignored
Date: Fri, 28 Feb 2020 09:59:38 -0500 (EST)

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

    Arithmetic: the interpmetric option is not ignored
    
    Until now, in Arithmetic we were blindly ignoring all command-line options
    related to tesselation. This included the `interpmetric' option which is
    used by Arithmetic's `interpolate-medianngb' operator!
    
    With this commit, to fix this, all the tesselation options are still
    ignored, except this option.
    
    This bug was found by Zahra Sharbaf.
    
    This fixes bug #57921.
---
 NEWS                | 1 +
 bin/arithmetic/ui.c | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index 95aea82..0704273 100644
--- a/NEWS
+++ b/NEWS
@@ -63,6 +63,7 @@ See the end of the file for license conditions.
 ** Bugs fixed
   bug #57300: MakeCatalog memory crash when input dataset has units.
   bug #57301: MakeCatalog using river sum instead of mean times by clump area.
+  bug #57921: Arithmetic's interpolation operator not reading metric.
 
 
 
diff --git a/bin/arithmetic/ui.c b/bin/arithmetic/ui.c
index b2ebbc2..ad5a59b 100644
--- a/bin/arithmetic/ui.c
+++ b/bin/arithmetic/ui.c
@@ -157,8 +157,8 @@ ui_initialize_options(struct arithmeticparams *p,
       switch(cp->coptions[i].group)
         {
         case GAL_OPTIONS_GROUP_TESSELLATION:
-          cp->coptions[i].doc=NULL; /* Necessary to remove title. */
-          cp->coptions[i].flags=OPTION_HIDDEN;
+          if(cp->coptions[i].key!=GAL_OPTIONS_KEY_INTERPMETRIC)
+            cp->coptions[i].flags=OPTION_HIDDEN;
           break;
         }
     }



reply via email to

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