-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from lcjohnso/adjust_priors_lcj
Adjust Av and Age priors, allow verify_params failures Failures are understood and have to do with the development version of astropy
- Loading branch information
Showing
7 changed files
with
162 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
Running the BEAST | ||
================= | ||
|
||
1) Define project and grid input parameters in datamodel.py | ||
|
||
2) Execute BEAST Run using ``python run_beast.py`` with appropriate task flags | ||
|
||
* Default Full Stack Run: ``python run_beast.py -p -o -t -f`` | ||
|
||
BEAST Data Model | ||
================ | ||
|
||
Primary Parameters | ||
------------------ | ||
|
||
Project Details | ||
|
||
* ``project``: sets name of working subdirectory | ||
* ``filters``: names of photometric filter passbands (matching library names) | ||
* ``basefilters``: short versions of passband names | ||
* ``obsfile``: filename for input flux data | ||
* ``obs_colnames``: column names in ``obsfile`` for observed fluxes | ||
* ``astfile``: filename for AST results file | ||
* ``distanceModulus``: distance modulus to target in mags | ||
|
||
Grid Definition Parameters | ||
|
||
* ``logt``: age grid range parameters (min, max, step) | ||
* ``z``: metallicity grid points | ||
* ``oiso``: stellar model definition | ||
* ``osl``: stellar library definition | ||
* ``extLaw``: extinction law definition | ||
* ``avs``: A_V grid range parameters (min, max, step) | ||
* ``rvs``: R_V grid range parameters (min, max, step) | ||
* ``fAs``: f_A grid range parameters (min, max, step) | ||
* ``*_prior_model``: prior model definitions for dust parameters (default: flat prior) | ||
|
||
Optional Features | ||
----------------- | ||
|
||
Add additional filters to grid | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
Define list of filternames as ``additional_filters`` and alter ``add_spectral_properties`` call: | ||
|
||
``add_spectral_properties_kwargs = dict(filternames=filters + additional_filters)`` | ||
|
||
Skip verify_params exit | ||
^^^^^^^^^^^^^^^^^^^^^^^ | ||
Add ``noexit=True`` keyword to ``verify_input_format()`` call in run_beast.py: | ||
|
||
``verify_params.verify_input_format(datamodel, noexit=True)`` | ||
|
||
Remove constant SFH prior | ||
^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
Add ``prior_kwargs`` to datamodel.py: | ||
|
||
``prior_kwargs = dict(constantSFR=False)`` | ||
|
||
Add kwargs defining code block before ``add_stellar_priors()`` call in run_beast.py: | ||
|
||
.. code-block:: python | ||
if hasattr(datamodel, 'prior_kwargs'): | ||
prior_kwargs = datamodel.prior_kwargs | ||
else: | ||
prior_kwargs = {} | ||
Enable Exponential Av Prior | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
Set ``av_prior_model`` in datamodel.py: | ||
|
||
``av_prior_model = {'name': 'exponential', 'a': 2.0, 'N': 4.0}`` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters