From 78fbb8a3027d1e3476ab31e99c3d1c7cb698e0bf Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 7 Jun 2016 19:50:36 +0800 Subject: Merge fit_nfwmass_{d,}beta.sh => fit_nfwmass.sh * Also remove 'fit_mass.sh' * Update README.md accordingly --- mass_profile/fit_mass.sh | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100755 mass_profile/fit_mass.sh (limited to 'mass_profile/fit_mass.sh') diff --git a/mass_profile/fit_mass.sh b/mass_profile/fit_mass.sh deleted file mode 100755 index 141d16c..0000000 --- a/mass_profile/fit_mass.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh -# - -if [ $# -eq 1 ]; then - : -elif [ $# -eq 2 ]; then - CENTER_VALUE="YES" -else - printf "usage: $0 [c]\n" - exit 1 -fi -cfg_file=$1 -if [ "$0" = `basename $0` ]; then - script_path=`which $0` - base_path=`dirname ${script_path}` -else - base_path=`dirname $0` -fi - -sbp_cfg=`grep '^sbp_cfg' $cfg_file | awk '{ print $2 }'` - -if grep -q '^beta2' $sbp_cfg; then - MODEL="double-beta" - PROG=fit_nfwmass_dbeta.sh -else - MODEL="single-beta" - PROG=fit_nfwmass_beta.sh -fi - -printf "## MODEL: ${MODEL}\n" -if [ "x${CENTER_VALUE}" = "xYES" ]; then - $base_path/$PROG $cfg_file c -else - $base_path/$PROG $cfg_file -fi - -- cgit v1.2.2