X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=ctest%2Fprota_unres_energy_check.sh;h=3aa859d18977f0e10332bd2ae82b87260cd53da6;hb=40bf66aba1eb110e45e3c01a2001428f6864f300;hp=45759b9b7e0335a848d7ff774dfb600dd4c78ede;hpb=afa8f7f791bbefc676d7f344d7b4a655f7c29f47;p=unres.git
diff --git a/ctest/prota_unres_energy_check.sh b/ctest/prota_unres_energy_check.sh
index 45759b9..3aa859d 100755
--- a/ctest/prota_unres_energy_check.sh
+++ b/ctest/prota_unres_energy_check.sh
@@ -70,6 +70,29 @@ elif [ "$1" == "1l2y_micro" ]; then
else
exit 0
fi
+elif [ "$1" == "1L2Y_L" ] || [ "$1" == "1L2Y_NH" ]; then
+ chi2=`./matplotlib_fit_hist.py $file_stat`
+ echo 'Chi2 for fitting theoretical temperature distribution ' ${chi2}
+ echo "`pwd`/${file_stat}.png"
+
+ if [ `echo "a=${chi2};a>0.001"|bc -l` != "0" ]; then
+ echo 'chi2 greater than 0.001'
+ exit 1
+ else
+ exit 0
+ fi
+elif [ "$1" == "1L2Y_B" ]; then
+ chi2=`./matplotlib_fit_hist.py $file_stat`
+ echo 'Chi2 for fitting theoretical temperature distribution ' ${chi2}
+ echo "`pwd`/${file_stat}.png"
+
+ if [ `echo "a=${chi2};a>0.01"|bc -l` != "0" ]; then
+ echo 'chi2 greater than 0.01'
+ exit 1
+ else
+ exit 0
+ fi
+
else
exit 1
fi