[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master ec59dca8: psf-scale-factor: --quiet option pas
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master ec59dca8: psf-scale-factor: --quiet option passed to internal astarithmetic |
Date: |
Mon, 22 Aug 2022 07:55:55 -0400 (EDT) |
branch: master
commit ec59dca8ccf21a78a2e6a365c081a1292d927e5c
Author: Sepideh Eskandarlou <sepideh.eskandarlou@gmail.com>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>
psf-scale-factor: --quiet option passed to internal astarithmetic
Until now, one of the 'astarithmetic' calls within this script wasn't being
passed the '--quiet' option. So when the user wanted to use the scale
factor value as a variabe, could not do it. Because '--quiet' option was
not active and a lot of extra things were printed, making it hard to
extract the calculated scale factor.
With this commit, the '$quiet' option is passed to that 'astarithmetic'
command, allowing the user to not have any extra output except the scale
factor.
---
NEWS | 2 ++
bin/script/psf-scale-factor.in | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/NEWS b/NEWS
index 7edb3b11..7400b86d 100644
--- a/NEWS
+++ b/NEWS
@@ -134,6 +134,8 @@ See the end of the file for license conditions.
bug #62892: Installed scripts don't account for differing LANG and
LC_NUMERIC. Found by Teet Kuutma and fixed by Raul
Infante-Sainz.
+ bug #62937: psf-scale-factor not being quiet, when requested. Found and
+ fixed by Sepideh Eskandarlou.
diff --git a/bin/script/psf-scale-factor.in b/bin/script/psf-scale-factor.in
index f78e2a7e..632b4a95 100644
--- a/bin/script/psf-scale-factor.in
+++ b/bin/script/psf-scale-factor.in
@@ -571,7 +571,7 @@ EOF
\
c o $olab ne 0 where c $clab eq -1 where 0 gt set-cmask \
o o $olab eq 0 where set-omask \
- i omask cmask or nan where
+ i omask cmask or nan where $quiet
fi
else
cropped_masked=$cropped
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnuastro-commits] master ec59dca8: psf-scale-factor: --quiet option passed to internal astarithmetic,
Mohammad Akhlaghi <=