isochrones/starmodel_old.py
def from_ini(cls, ic, folder='.', ini_file='star.ini'):
        """
        Initialize a StarModel from a .ini file

        File should contain all arguments with which to initialize
        StarModel.  
        """
        if not os.path.isabs(ini_file):
            ini_file = os.path.join(folder,ini_file)

        config = ConfigObj(ini_file)
        kwargs = {}
        for kw in config.keys():
            try:
                kwargs[kw] = float(config[kw])
            except:
                kwargs[kw] = (float(config[kw][0]), float(config[kw][1]))

        return cls(ic, **kwargs)

        Initialize a StarModel from a .ini file

        File should contain all arguments with which to initialize
        StarModel.  
        
Initialize a StarModel from a .ini file
File should contain all arguments with which to initialize
StarModel.
Initialize a StarModel from a . ini file File should contain all arguments with which to initialize StarModel .
def from_ini(cls, ic, folder='.', ini_file='star.ini'):
        if not os.path.isabs(ini_file):
            ini_file = os.path.join(folder,ini_file)
        config = ConfigObj(ini_file)
        kwargs = {}
        for kw in config.keys():
            try:
                kwargs[kw] = float(config[kw])
            except:
                kwargs[kw] = (float(config[kw][0]), float(config[kw][1]))
        return cls(ic, **kwargs)
def from_ini ( cls , ic , folder = '.' , ini_file = 'star.ini' ) : if not os . path . isabs ( ini_file ) : ini_file = os . path . join ( folder , ini_file ) config = ConfigObj ( ini_file ) kwargs = { } for kw in config . keys ( ) : try : kwargs [ kw ] = float ( config [ kw ] ) except : kwargs [ kw ] = ( float ( config [ kw ] [ 0 ] ) , float ( config [ kw ] [ 1 ] ) ) return cls ( ic , ** kwargs )
Initialize a StarModel from a .ini file
File should contain all arguments with which to initialize
StarModel.
Initialize a StarModel from a . ini file File should contain all arguments with which to initialize StarModel .
"""
        Initialize a StarModel from a .ini file

        File should contain all arguments with which to initialize
        StarModel.  
        """
cls
ic
folder
ini_file