Home | Trees | Indices | Help |
---|
|
A simple interface to work with a database saved on the hard disk.
Author: Robin Lombaert
|
|||
Database A database class. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Database() |
|
||
Database() |
|
||
Database() |
|
||
Database() |
|
||
Database() |
|
||
Database() |
|
||
Database() |
|
||
Database() |
|
||
|
|
|||
__package__ =
|
|
Update all databases located in any of your modeling folders in cc.path.gastronoom. Choose the method to run as well as the database to update, and add the args and kwargs for that method. This method synchronizes the databases, so run with care.
|
Convert your local databases such that some keywords are shifted around according to their relevance for the different subcodes of GASTRoNOoM. Moves USE_MASER_IN_SPHINX from sphinx to mline. Sets it to the default value of 1, since it was never changed for mline. Moves USE_NO_MASER_OPTION, N_FREQ, START_APPROX, USE_FRACTION_LEVEL_CORR, FRACTION_LEVEL_CORR, NUMBER_LEVEL_MAX_CORR from cooling to mline. Moves WRITE_INTENSITIES, TAU_MAX, TAU_MIN, CHECK_TAU_STEP from cooling to sphinx. Adds the new keywords N_IMPACT_EXTRA[_RIN/ROUT] to cooling. Adds the new keywords FRACTION_TAU_STEP, MIN_TAU_STEP to sphinx. Adds the new keyword FEHLER to mline. Converts any 'double' notation in str format to the floats, e.g. TAU_MIN='-6d0' becomes TAU_MIN=-6. Converts all cooling, mline, sphinx and pacs databases found in the GASTRoNOoM home folder. Can Update ComboCode input files for the maser keywords.
|
Update dust filenames in MCMax database with the new OPAC_PATH system.
|
Convert MCMax database to the dict format. This change was made to speed up the use of the database and makes use of the Database() class.
|
Remove any db entries with a dictionary that includes the IN_PROGRESS key. Works for cooling, mline and sphinx databases.
|
Reconstruct a cooling database based on the mline database and the GASTRoNOoM inputfiles. Only works if the water MOLECULE convenience keywords, the MOLECULE R_OUTER and/or the MOLECULE ENHANCE_ABUNDANCE_FACTOR keywords were not adapted!
|
Add a (key,value) pair to every entry in the cooling database. Not added to a particular entry if already present.
|
Remove a key from every entry in the cooling database.
|
Add a (key,value) pair to every entry in the mline database. Not added to a particular entry if already present.
|
Remove a key from every entry in the mline database.
|
Remove a key from the sphinx database entries.
|
Add a (key,value) pair to every entry of the sphinx database entries.
|
Remove a key from the PACS database entries.
|
Add a (key,value) pair to every entry of the PACS database entries.
|
Replace a substring of values in database entries, such as the home directory of filenames. This is applied to all strings in the database vals! This applies to the value of a dictionary (key,value) pair on the second level of the database (the first level being (model_id, dictionary). Does not work for embedded dictionaries in a dictionary, such as the dust_species embedded dictionary in an MCMax database! The database is not synchronized in this method.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Nov 7 18:01:56 2016 | http://epydoc.sourceforge.net |