gnuastro-commits
[Top][All Lists]
Advanced

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

[gnuastro-commits] master 5d9a6d9b 50/69: PSF select-stars: make check s


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 5d9a6d9b 50/69: PSF select-stars: make check steps done again because some new option are added
Date: Wed, 26 Jan 2022 12:39:14 -0500 (EST)

branch: master
commit 5d9a6d9b1cbba70202aff6a475815abe90c9652d
Author: Sepideh Eskandarlou <sepideh.eskandarlou@gmail.com>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>

    PSF select-stars: make check steps done again because some new option are 
added
    
    Until now, the '--magnituderange', '--mindistdeg', '--minaxisratio',
    '--matchaperturedeg' options did not exist and 'make check' steps was set
    for the selecting of the stars without these options. Without considering
    these options in 'make check' steps the fail ocuured.
    
    With this commit, the '--magnituderange', '--mindistdeg', '--minaxisratio',
    '--matchaperturedeg' have been considered in the 'make check' steps and now
    in the 'make check' steps the user do not faced with a fail. And during the
    installation of the Gnuastro this script will be checked to make sure
    everything is fine.
---
 tests/Makefile.am                       | 2 +-
 tests/script/psf-create-select-stars.sh | 8 ++++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index cd339ae5..ef7392ce 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -220,7 +220,7 @@ script/radial-profile.sh: mkprof/mosaic2.sh.log
 script/psf-create-junction.sh: mkprof/mosaic2.sh.log
 script/psf-create-make-stamp.sh: mkprof/mosaic2.sh.log
 script/psf-model-flux-factor.sh: mkprof/mosaic2.sh.log
-script/psf-model-select-stars.sh: mkprof/mosaic2.sh.log
+script/psf-create-select-stars.sh: segment/segment.sh.log
 script/psf-model-scattered-light.sh: mkprof/mosaic2.sh.log
 
 
diff --git a/tests/script/psf-create-select-stars.sh 
b/tests/script/psf-create-select-stars.sh
index a5886dbb..f362f248 100755
--- a/tests/script/psf-create-select-stars.sh
+++ b/tests/script/psf-create-select-stars.sh
@@ -49,6 +49,7 @@ if [ ! -f $execname ]; then echo "$execname doesn't exist."; 
exit 77; fi
 if [ ! -f $dep1name ]; then echo "$dep1name doesn't exist."; exit 77; fi
 if [ ! -f $dep2name ]; then echo "$dep2name doesn't exist."; exit 77; fi
 if [ ! -f $fits1name ]; then echo "$fits1name doesn't exist."; exit 77; fi
+if [ ! -f $fits2name ]; then echo "$fits2name doesn't exist."; exit 77; fi
 
 
 
@@ -83,5 +84,8 @@ $check_with_program astmkcatalog $fits2name \
 $check_with_program $execname $fits1name --hdu=1 \
                     --segmented=$fits2name \
                     --catalog=$fits3name \
-                    --field=magnitude
-
+                    --field=magnitude \
+                    --magnituderange=-17,-10 \
+                    --minaxisratio=0.85 \
+                    --mindistdeg=0.05 \
+                    --matchaperturedeg=0.5



reply via email to

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