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 689da95 commit 1a76fb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MonoTools/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -932,8 +932,8 @@ def init_starpars(self,Rstar=None,Teff=None,logg=None,FeH=0.0,rhostar=None,Mstar
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
self.Teff[1]=300
self.Teff[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 1a76fb4

Please sign in to comment.