gnuastro-commits
[Top][All Lists]
Advanced

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

[gnuastro-commits] master ce97d4be: Library (arithmetic.h): correct name


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master ce97d4be: Library (arithmetic.h): correct name for *-clip-fill-* error messages
Date: Fri, 5 Jan 2024 05:17:26 -0500 (EST)

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

    Library (arithmetic.h): correct name for *-clip-fill-* error messages
    
    Until now, when reporting an error on any of the '*-clip-fill-*' operators
    (for example 'madclip-fill-mean'), the library would say that the operator
    name is '*-clip-dilate-*'! This was the original name of these operators
    (before filling holes was included resuling in the name change).
    
    With this commit, their names have been corrected.
---
 lib/arithmetic.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/lib/arithmetic.c b/lib/arithmetic.c
index c76d983e..fe5437fb 100644
--- a/lib/arithmetic.c
+++ b/lib/arithmetic.c
@@ -4329,25 +4329,25 @@ gal_arithmetic_operator_string(int operator)
     case GAL_ARITHMETIC_OP_MADCLIP_MAD:     return "madclip-mad";
     case GAL_ARITHMETIC_OP_MADCLIP_STD:     return "madclip-std";
     case GAL_ARITHMETIC_OP_MADCLIP_FILL_NUMBER:
-      return "madclip-dilate-number";
+      return "madclip-fill-number";
     case GAL_ARITHMETIC_OP_MADCLIP_FILL_MEDIAN:
-      return "madclip-dilate-median";
+      return "madclip-fill-median";
     case GAL_ARITHMETIC_OP_MADCLIP_FILL_MEAN:
-      return "madclip-dilate-mean";
+      return "madclip-fill-mean";
     case GAL_ARITHMETIC_OP_MADCLIP_FILL_MAD:
-      return "madclip-dilate-mad";
+      return "madclip-fill-mad";
     case GAL_ARITHMETIC_OP_MADCLIP_FILL_STD:
-      return "madclip-dilate-std";
+      return "madclip-fill-std";
     case GAL_ARITHMETIC_OP_SIGCLIP_FILL_NUMBER:
-      return "sigclip-dilate-number";
+      return "sigclip-fill-number";
     case GAL_ARITHMETIC_OP_SIGCLIP_FILL_MEDIAN:
-      return "sigclip-dilate-median";
+      return "sigclip-fill-median";
     case GAL_ARITHMETIC_OP_SIGCLIP_FILL_MEAN:
-      return "sigclip-dilate-mean";
+      return "sigclip-fill-mean";
     case GAL_ARITHMETIC_OP_SIGCLIP_FILL_MAD:
-      return "sigclip-dilate-mad";
+      return "sigclip-fill-mad";
     case GAL_ARITHMETIC_OP_SIGCLIP_FILL_STD:
-      return "sigclip-dilate-std";
+      return "sigclip-fill-std";
 
     case GAL_ARITHMETIC_OP_MKNOISE_SIGMA:   return "mknoise-sigma";
     case GAL_ARITHMETIC_OP_MKNOISE_SIGMA_FROM_MEAN:



reply via email to

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