[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-commits] master 4b577cbe: psf-scale-factor and psf-stamp: scri
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-commits] master 4b577cbe: psf-scale-factor and psf-stamp: script name in debugging message |
Date: |
Tue, 28 Jun 2022 07:03:19 -0400 (EDT) |
branch: master
commit 4b577cbe4d36343b47f77ea8d184df01ad30ad71
Author: Mohammad Akhlaghi <mohammad@akhlaghi.org>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>
psf-scale-factor and psf-stamp: script name in debugging message
Until now (previous commit), the message that would print the clump and
object labels didn't include the script name. It is important that every
program printing messages (like warnings or errors), identify itself in at
the start of the messages.
With this commit, a '$scriptname: ' has been added at the start of the two
'echo' outputs so the user knows which program is printing it.
---
bin/script/psf-scale-factor.in | 2 +-
bin/script/psf-stamp.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/script/psf-scale-factor.in b/bin/script/psf-scale-factor.in
index d6c97700..6247b2f8 100644
--- a/bin/script/psf-scale-factor.in
+++ b/bin/script/psf-scale-factor.in
@@ -549,7 +549,7 @@ EOF
else
# To help in debugging (when '--quiet' is not called)
if [ x"$quiet" = x ]; then
- echo "$segment: at $center, found clump $clab in object $olab"
+ echo "$scriptname: $segment: at $center, found clump $clab in
object $olab"
fi
# Crop the object and clump image to same size as desired stamp.
diff --git a/bin/script/psf-stamp.in b/bin/script/psf-stamp.in
index 4f078490..ec038126 100644
--- a/bin/script/psf-stamp.in
+++ b/bin/script/psf-stamp.in
@@ -605,7 +605,7 @@ EOF
else
# To help in debugging (when '--quiet' is not called)
if [ x"$quiet" = x ]; then
- echo "$segment: at $center, found clump $clab in object $olab"
+ echo "$scriptname: $segment: at $center, found clump $clab in
object $olab"
fi
# Crop the object and clump image to same size as desired stamp.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnuastro-commits] master 4b577cbe: psf-scale-factor and psf-stamp: script name in debugging message,
Mohammad Akhlaghi <=