From 474ab49309161e97a0087666d9bc0d671a3cbad9 Mon Sep 17 00:00:00 2001 From: Takahiro Morishita Date: Fri, 22 Dec 2023 21:02:32 -0800 Subject: [PATCH] Update function.py --- gsf/function.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gsf/function.py b/gsf/function.py index dd270ac..c9eed43 100644 --- a/gsf/function.py +++ b/gsf/function.py @@ -428,7 +428,7 @@ def check_rejuv(age,SF,MS,SFMS_50,lm_old=10.0,delMS=0.2): return f_rejuv,t_quench,t_rejuv -def get_SFMS(red,age,mass,IMF=1,get_param=False): +def get_SFMS(red,age,mass,IMF=1,get_param=False, ylim=-99): ''' Gets SFMS at age ago from z=red. @@ -465,7 +465,7 @@ def get_SFMS(red,age,mass,IMF=1,get_param=False): alp = (0.84 - 0.026*tz) beta = - (6.51 - 0.11*tz) y1 = alp * x + beta # in log Msun/yr - con = (y1<=0) + con = (y1<=ylim) y1[con] = -10 if get_param: return y1, [alp,beta]