Home | Trees | Indices | Help |
---|
|
The interface with which to run the ComboCode package.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
list[Star()] |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Initializing a ComboCode instance. Once this is done, you only need to run startSession(). Then all methods in this class will be called according to your inputfile. Only run separate methods of the class if you know what you are doing! Input is read and parsed, and the parameter objects (Star()) are set The instrument and data objects, and the plotting manager are set. The .spec file is updated here, if requested. The inputfile can be given on the command line as: python ComboCode.py inputComboCode.dat In the python or ipython shell you can do: >>> import ComboCode >>> cc = ComboCode.ComboCode('/home/robinl/ComboCode/input/inputComboCode.dat')
|
Start a ComboCode session, based on the input read upon initialisation. The supercomputer and model managers are set and ran. The plot manager, statistics module, fitter modules are ran if requested. The session ends by printing some info about the Star() objects. Once started, the ComboCode object cannot be started again. You will have to re-initialize. This will change in the future. |
Set star_name for the ComboCode object as a tuple. Typically this is only one name for a standard modelling session, but can be made multiple names as well for a statistical study. The ComboCode object keeps track of all the data in dicts. |
Collect the relevant radio data for the requested star. Only done if the pathname to the data is given. If a database is not present, it is created. If the radio_autosearch flag is on, transitions are automatically generated based on the available data. Note that in this case, N_QUAD from Star() is taken. |
Add radio data to Transition() objects in all Star() objects. Only done if RADIO_PATH is given and if a file named radio_data.db is present in the given folder. This method can be called multiple times per session for different stars in which case the data in the transition objects will be replaced. self.radio_trans maintains a list of "sample transitions" that contain data. These function as data blueprints for transitions in the star_grid
|
Read input for ComboCode and return list. The MOLECULE, TRANSITION and R_POINTS_MASS_LOSS parameter formats are checked for errors in this method. If erroneous, an IOError is raised. |
Return the list of Star() objects for this ComboCode session.
|
Create a list of Star() objects based on the inputfile that has been parsed with cc.readInput(). The list of Star() objects is saved in self.star_grid, and is accessed through cc.getStarGrid(). |
Set the output folders. If the folders do not already exist, they are created. The locations are saved in cc.path for later use, but this is generally only done inside a ComboCode session. Each module sets these themselves |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Nov 7 18:01:56 2016 | http://epydoc.sourceforge.net |