gnuastro-commits
[Top][All Lists]
Advanced

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

[gnuastro-commits] master 70796ee: Corrected some typos in the source, f


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 70796ee: Corrected some typos in the source, found by lintian
Date: Sun, 19 Apr 2020 23:55:20 -0400 (EDT)

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

    Corrected some typos in the source, found by lintian
    
    While packaging for Debain, its Lintian program found several typos in
    Gnuastro's source that are now corrected.
---
 NEWS                    | 2 +-
 bin/convolve/convolve.c | 2 +-
 lib/arithmetic.c        | 8 ++++----
 lib/txt.c               | 2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/NEWS b/NEWS
index ca9031b..ad4c8e8 100644
--- a/NEWS
+++ b/NEWS
@@ -176,7 +176,7 @@ See the end of the file for license conditions.
      --geow3: Geometric center in third WCS axis.
      --clumpsw3: Flux wheighted center of all clumps in 3rd dim.
      --clumpsgeow3: Geometric center of all clumps in 3rd dim.
-     --areaxy: Projected area in first two dimentions.
+     --areaxy: Projected area in first two dimensions.
      --geoareaxy: Projected geoarea in first two dimensions.
    --inbetweenints: output will contain one row for all integers between 1
      and the largest label in the input (irrespective of their existance in
diff --git a/bin/convolve/convolve.c b/bin/convolve/convolve.c
index 7c29de6..0094378 100644
--- a/bin/convolve/convolve.c
+++ b/bin/convolve/convolve.c
@@ -378,7 +378,7 @@ correctdeconvolve(struct convolveparams *p, double 
**spatial)
 
 
   /* Put the elements in their proper place: For example in one
-     dimention where the values are actually the true distances:
+     dimension where the values are actually the true distances:
 
         s[0]=0, s[1]=1, s[2]=2, s[3]=3, s[4]=4, s[5]=5
 
diff --git a/lib/arithmetic.c b/lib/arithmetic.c
index 8b8ab86..62d9275 100644
--- a/lib/arithmetic.c
+++ b/lib/arithmetic.c
@@ -640,10 +640,10 @@ arithmetic_size(int operator, int flags, gal_data_t *in, 
gal_data_t *arg)
   /* Sanity checks on argument (dimension number): it should be an integer,
      and have a size of 1. */
   if(arg->type==GAL_TYPE_FLOAT32 || arg->type==GAL_TYPE_FLOAT64)
-    error(EXIT_FAILURE, 0, "%s: size operator's dimention argument"
-          "must have an interger type", __func__);
+    error(EXIT_FAILURE, 0, "%s: size operator's dimension argument"
+          "must have an integer type", __func__);
   if(arg->size!=1)
-    error(EXIT_FAILURE, 0, "%s: size operator's dimention argument"
+    error(EXIT_FAILURE, 0, "%s: size operator's dimension argument"
           "must be a single number, but it has %zu elements", __func__,
           arg->size);
 
@@ -668,7 +668,7 @@ arithmetic_size(int operator, int flags, gal_data_t *in, 
gal_data_t *arg)
   /* Sanity checks on the value of the given argument.*/
   if(arg_val>in->ndim)
     error(EXIT_FAILURE, 0, "%s: size operator's dimension argument "
-          "(given %zu) cannot be larger than the dimentions of the "
+          "(given %zu) cannot be larger than the dimensions of the "
           "given input (%zu)", __func__, arg_val, in->ndim);
   if(arg_val==0)
     error(EXIT_FAILURE, 0, "%s: size operator's dimension argument "
diff --git a/lib/txt.c b/lib/txt.c
index 15ff79b..bf53dd8 100644
--- a/lib/txt.c
+++ b/lib/txt.c
@@ -1437,7 +1437,7 @@ gal_txt_write(gal_data_t *input, gal_list_str_t *comment, 
char *filename,
          elements. */
       if( input!=data && gal_dimension_is_different(input, data) )
         error(EXIT_FAILURE, 0, "%s: the input list of datasets must have the "
-              "same sizes (dimentionality and length along each dimension)",
+              "same sizes (dimensions and length along each dimension)",
               __func__);
     }
 



reply via email to

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