Skip to content

Commit

Permalink
Catching nan Teff errors and forcing them to be large fractions of th…
Browse files Browse the repository at this point in the history
…e value
  • Loading branch information
hposborn committed Aug 21, 2024
1 parent e20c787 commit 689da95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MonoTools/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,9 @@ def init_starpars(self,Rstar=None,Teff=None,logg=None,FeH=0.0,rhostar=None,Mstar
if self.Rstar[0] is not None and (self.Rstar[1] is None or self.Rstar[0]==np.nan):
self.Rstar[1]=0.15*self.Rstar[0]
self.Rstar[2]=0.15*self.Rstar[0]
if self.Teff[0] is not None and (self.Teff[1] is None or self.Teff[0]==np.nan):
self.Rstar[1]=300
self.Rstar[2]=300

def get_savename(self, how='load',overwrite=None):
"""Adds unique savename prefixes to class (self.savenames) with two formats:
Expand Down

0 comments on commit 689da95

Please sign in to comment.