Package ComboCode :: Package cc :: Package modeling :: Package objects :: Module Star
[hide private]
[frames] | no frames]

Module Star

source code

Module including functions for stellar parameters, and the STAR class and its methods and attributes.

Author: R. Lombaert

Classes [hide private]
  Star
Star class maintains information about a stellar model and its properties.
Functions [hide private]
list[Star()]
getStar(star_grid, modelid, idtype='GASTRONOOM')
Grab a Star() object from a list of such objects, given a model id.
source code
list[Star()]
makeStars(models, id_type, path, code)
Make a list of dummy Star() objects.
source code
Variables [hide private]
  __package__ = 'ComboCode.cc.modeling.objects'
Function Details [hide private]

getStar(star_grid, modelid, idtype='GASTRONOOM')

source code 

Grab a Star() object from a list of such objects, given a model id.

If no modelid is found, an empty list is returned. If Star() objects are found (even only one), a list of them is returned.

Based on the cooling modelid.

Parameters:
  • star_grid (list[Star()]) - the Star() objects
  • modelid (string) - the given modelid for which the selection is made.
  • idtype (string) - The type of model id

    (default: GASTRONOOM)

Returns: list[Star()]
The models matching the modelid

makeStars(models, id_type, path, code)

source code 

Make a list of dummy Star() objects.

Parameters:
  • models (list[string]) - model_ids for the new models
  • id_type (string) - The type of id (PACS, GASTRONOOM, MCMAX)
  • path (string) - Output folder in the code's home folder
  • code (string) - The code (which is not necessarily equal to id_type, such as for id_type == PACS)
Returns: list[Star()]
The parameter sets, mostly still empty!