Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
154 commits
Select commit Hold shift + click to select a range
99ab866
p-beta updates: add DymSFHfixZred and PhiSFHfixZred prior classes; fi…
wangbingjie Jun 6, 2023
6597746
Merge pull request #286 from wangbingjie/p-beta
bd-j Jun 8, 2023
a738950
fixing suspected typo in sfh.py
yasmeenasali Jun 13, 2023
b0d8699
Merge pull request #287 from yasmeenasali/main
bd-j Jun 13, 2023
4e9d57a
avoid RuntimeWarning when smoothing with 0 km/s
elijahmathews Jun 29, 2023
e9efa01
Merge pull request #289 from elijahmathews/smoothspecvel
bd-j Jul 5, 2023
2fa085d
closes #288
bd-j Jul 7, 2023
d9af876
mod write_h5_header so that no OSError is threw & added an option of …
wangbingjie Jul 28, 2023
d4f0805
Merge pull request #293 from wangbingjie/io
bd-j Aug 4, 2023
770e3bf
update rtd config.
bd-j Aug 28, 2023
6e72fe3
update rtd config.
bd-j Aug 28, 2023
c8ccfaa
explicitly install scipy for tests.
bd-j Aug 28, 2023
5c0255a
[ci skip] fix test badge link in readme.
bd-j Aug 28, 2023
f46ca4e
propogate the data mask to the eline fitting mask.
bd-j Oct 23, 2023
0f93422
update citation info; fix line indices for AGNSpecModel to correspond…
bd-j Dec 6, 2023
9526327
Merge pull request #305 from bd-j/ref
bd-j Dec 6, 2023
0a0da6d
[ci-skip] fix rst links.
bd-j Dec 6, 2023
30d2bab
[ci-skip] doc clarification.
bd-j Dec 6, 2023
dd50479
fix polynomial regularization bug (#296)
bd-j Dec 11, 2023
6583fd0
fix PolySpec regularization dimension mismatch (#296)
bd-j Dec 11, 2023
364d0c0
set the values in np.clip() from [-100,100] to [-10,10] to help with …
davidjsetton Dec 12, 2023
74e5cbb
Merge pull request #308 from davidjsetton/clip_fix
bd-j Dec 12, 2023
1401137
readme laying out goals for version 2.0
bd-j Jun 19, 2022
d3b2949
add a to-do list.
bd-j Jun 19, 2022
9eb80f9
run tests on branch v2.0
bd-j Jun 19, 2022
ba7aec1
Start work on Observation class, trying to maintain backwards compati…
bd-j Jun 29, 2021
501d952
Working basic predictions with multiple spectra.
bd-j Feb 1, 2022
dc3c71c
Move noise models to observation objects.
bd-j Apr 29, 2022
4bb0e83
Remove SedModel and it's subclasses; cache library resolution if avai…
bd-j May 2, 2022
563e713
Move observation submodule to new data module;
bd-j May 2, 2022
56781a1
Update docs for new observation object, including noise model descrip…
bd-j May 2, 2022
115b132
Remove utils.smoothing, switch to using astro-sedpy for smoothing.
bd-j May 3, 2022
fc68b5e
Updating demos and docs for new Observation class.
bd-j May 4, 2022
ea31213
Observation class updates.
bd-j Jun 18, 2022
6e16e2d
Starting on io simplification.
bd-j Jun 18, 2022
5c89c9d
explicitly set output wavelength to sps when no input wavelength; ass…
bd-j Jun 18, 2022
4e0017f
Fix bugs and tests; allow use of list of Filters or FilterSet.
bd-j Jun 18, 2022
0a9c61d
Simplification of prospect.sources
bd-j Jul 27, 2022
81ac17b
replace LineSpec with a method of SpecModel; rename get_el() to the m…
bd-j Nov 29, 2022
8e9935d
Docstring updates, make env name more flexible in install instructions.
bd-j Nov 29, 2022
3a1f234
Fix imports; update and test AGNSpecModel predictions.
bd-j Nov 30, 2022
6c25bb1
fixes for run_dynesty; better observation data checking; some work wi…
bd-j Jan 16, 2023
78f2332
Fix imports and robustify metadata writing.
bd-j Jan 16, 2023
28770a7
fix bug in covariance construction; add option to median smooth befor…
bd-j Jan 18, 2023
b0f80a5
io and plotting; allow vector nebemlineinspec.
bd-j Jan 20, 2023
3f419d1
Rename prospect.data -> prospect.observation. Also slight change to i…
bd-j Apr 11, 2023
cf90515
fix tests; put weight vector names in the kernels; add a NoiseModel1D…
bd-j Apr 11, 2023
3f96e55
Work on instrumental smoothing.
bd-j Apr 12, 2023
daf4e03
Add instrumental resolution to emission linewidths;
bd-j Jul 7, 2023
a252c46
handle spectrum padding when no resoltion or wavelength; actually tes…
bd-j Aug 6, 2023
31ad26c
return scalar from NoiseModel.lnlike when using outlier model.
bd-j Aug 6, 2023
e4c5436
add some noise model parameter docs.
bd-j Aug 6, 2023
10232a4
fix Observation class attributes for H5 storage.
bd-j Aug 26, 2023
2a7c5fd
default Observation names now include a the hex id to distinguish ins…
bd-j Sep 18, 2023
ede002a
begin work on undersampledSpectrum.
bd-j Sep 18, 2023
c15ccc2
fix bug in eline pixelmask generation.
bd-j Jan 3, 2024
b55325d
rectify obs before prediction in agn test.
bd-j Jan 4, 2024
933b0b7
update API to work with emcee global variables
noahfranz13 Jan 7, 2024
2ead831
Merge pull request #309 from noahfranz13/main
bd-j Jan 8, 2024
1154ca7
fix tests; start on multispec tests.
bd-j Jan 8, 2024
e233cd7
Merge pull request #311 from bd-j/obsobj_merge
bd-j Jan 8, 2024
48318f9
propogate fitted emission line uncertainties across prior and multipl…
bd-j Jan 9, 2024
d13454c
[ci skip] update v2.0 todo list.
bd-j Jan 9, 2024
1231956
Merge pull request #313 from bd-j/multispec_line_penalty
bd-j Jan 9, 2024
417adb6
update dtypes for numpy 1.20; closes #315
bd-j Jan 22, 2024
b2d4b2d
add DLA absorption to spectrum.
bd-j Jan 26, 2024
167b3dc
make sure photometry includes igm and physical smoothing.
bd-j Jan 27, 2024
477a6a4
add test for dla.
bd-j Jan 27, 2024
555fc9f
Add files via upload
jwan22 Mar 18, 2024
c0a9dbb
Added stochastic prior to SFH models
jwan22 Mar 18, 2024
cdd61e9
Add files via upload
jwan22 Mar 19, 2024
43ae91a
updating changelog for version 1.3.0
bd-j Mar 26, 2024
9ef8fcb
doc tweaks.
bd-j Mar 26, 2024
b20756b
remove six requirement; fix toml bug; start on release workflow.
bd-j Mar 26, 2024
e5d1022
revert pyproject.toml changes.
bd-j Mar 26, 2024
0fb694c
fixing doc builds.
bd-j Mar 26, 2024
899e30e
bumping python requirement; closes #323
bd-j Mar 26, 2024
e6924e1
bugfixes in p-beta when const_phi=True: update data file names, ensur…
wangbingjie Apr 3, 2024
9a4a5ef
Delete prospect/models/gp_sfh.py
jwan22 Apr 15, 2024
e9b800d
Delete prospect/models/gp_sfh_kernels.py
jwan22 Apr 15, 2024
4f432d1
Added modules to handle the stochastic SFH prior
jwan22 Apr 15, 2024
b51efb5
Merge pull request #330 from jwan22/stoch_prior
bd-j Apr 17, 2024
3e006ab
add some references for the gp-sfh methods; documentation updates for…
bd-j Apr 18, 2024
76c84ab
[skip ci] Fixes to references.
bd-j Apr 18, 2024
f474e2e
[skip ci] Fixes to references.
bd-j Apr 18, 2024
7c1e179
[skip ci] Update SFH reference.
bd-j Apr 26, 2024
34be158
remove duplicate tests.
bd-j Apr 28, 2024
5829177
fix logic bug in absolute_rest_maggies.
bd-j Apr 28, 2024
ad63e99
add a basic test for observation I/O, and some more docs for dataform…
bd-j Apr 28, 2024
f343e51
cleanup after io test.
bd-j Apr 28, 2024
8cdcd76
Basic IGM damping wing implementation.
bd-j Apr 28, 2024
fb4f886
fix bug in test.
bd-j Apr 28, 2024
274b89b
suppress io tests till ci issues can be worked out.
bd-j Apr 29, 2024
4c2d106
Merge pull request #317 from bd-j/dla
bd-j Apr 29, 2024
dc5c681
add a check for emission line names in fsps cloudy table
bd-j May 16, 2024
b3e5ae6
Merge pull request #333 from bd-j/line_names
bd-j May 16, 2024
b3b3b82
Add DLS redshift option.
bd-j May 16, 2024
ce4ea2e
fix math for lower redshift dla.
bd-j May 20, 2024
173051a
Merge branch 'bd-j:main' into main
wangbingjie May 21, 2024
9031e1b
Merge pull request #334 from wangbingjie/main
bd-j May 21, 2024
9599c70
hack to change spectral resolution on the fly.
bd-j Jun 4, 2024
5a1866d
fix bug when multiple elines are to be ignored.
bd-j Jun 4, 2024
8e2113c
fix bug when multiple elines are to be ignored.
bd-j Jun 4, 2024
f9cc18a
fixes to pixelization for undersampled spectra.
bd-j Jun 18, 2024
60919e1
rename velocity_smoothing -> losvd_smoothing; decrease min wavelength…
bd-j Jun 18, 2024
51c09d9
more detail in the undersampled spectrum test.
bd-j Jun 21, 2024
b055d6f
add a method for producing an 'intrinsic' spectrum.
bd-j Jul 1, 2024
60bc819
updating changelog for version 1.4.0
bd-j Jul 6, 2024
61c34d4
Merge branch 'v2.0'
bd-j Jul 6, 2024
5e30a18
store sampling duration.
bd-j Jul 8, 2024
e86c0b8
attach polyorder parameter to individual Spectrum() instances.
bd-j Jul 8, 2024
c96c164
fix bug in polynomial_order.
bd-j Jul 8, 2024
09f11ca
let model params override observation specific polynomial, for backwa…
bd-j Jul 9, 2024
1717fd0
beginning to move spectral claibration code to Observation objects.
bd-j Jul 8, 2024
605f2ea
move the spectroscopic response fitting to Observation mixin classes.
bd-j Jul 10, 2024
fe3f10e
some documentation for spectra including response function treatments.
bd-j Jul 10, 2024
a2e2710
fix type comparisons.
bd-j Aug 7, 2024
eb4a2b0
doc updates.
bd-j Aug 8, 2024
768c689
move common prediction code to SpecModel method. Add basic polycal te…
bd-j Aug 8, 2024
9f00d08
fix misnamed spectral response method.
bd-j Aug 8, 2024
2ddd786
Merge pull request #336 from bd-j/obs_cal
bd-j Aug 9, 2024
0bb8f43
words in readme about migrating from v1.X
bd-j Jul 8, 2024
d76f841
Mention polynomial calibration in readme for changes from v1.X.
bd-j Jul 8, 2024
ca3948e
try to store an unstructured chain in the output as well as a structu…
bd-j Aug 9, 2024
ade88bd
clean up imports and type comparison in parameters.py.
bd-j Jul 6, 2024
9a4262a
Multiple nested samplers.
bd-j Jul 7, 2024
fa2c501
change how samplers are specified; clean up how results are passed an…
bd-j Aug 28, 2024
4da9a26
propagate n_eff properly; have test output produce files from which m…
bd-j Aug 28, 2024
3494e11
Merge pull request #338 from bd-j/samplers
bd-j Aug 28, 2024
31167bc
[ci skip] update readme.
bd-j Aug 28, 2024
dfb3675
[ci skip] fix readme links.
bd-j Aug 28, 2024
40e2614
fixes, test, and docs for Lines prediction.
bd-j Aug 30, 2024
554d68d
[ci skip] Add documentation for use of HyperSpecModel with stochastic…
bd-j Sep 12, 2024
1bf1bc4
restructure of nested samplers, fixed crash in nautilus
johannesulf Sep 25, 2024
e754d98
fixed crash
johannesulf Sep 26, 2024
707a199
added appropriate users warnings
johannesulf Sep 26, 2024
2e7c470
updated docstrings
johannesulf Sep 26, 2024
f4765e1
fix for numpy 2.0
johannesulf Sep 30, 2024
1f3914e
Merge pull request #349 from johannesulf/numpyv2
bd-j Sep 30, 2024
e3182c0
Merge pull request #348 from johannesulf/nested
bd-j Oct 1, 2024
9334fc9
remove unused kwargs warning for samplers; update tests_samplers
bd-j Oct 1, 2024
e6af39a
de-alias dynesty parameters in the parser, to maintain some backwards…
bd-j Oct 1, 2024
2f0588b
only compute lya damping above zmin.
bd-j Sep 26, 2024
8b197e6
Merge pull request #350 from bd-j/damping-fix
bd-j Oct 8, 2024
b4ed6ed
return model=None if dangerous=False
wangbingjie Nov 22, 2024
3367e7d
Merge pull request #358 from wangbingjie/p-v2-bw-debug
bd-j Nov 22, 2024
8f84211
merge add_cue branch with main
yi-jia-li Dec 5, 2024
73275f1
updata cue model for v2
yi-jia-li Dec 6, 2024
150b64f
use cuejax to predict nebular emission
yi-jia-li May 18, 2025
1003f96
implement dust emission
yi-jia-li May 18, 2025
09506eb
switch to fast cuejax prediction
yi-jia-li Jun 9, 2025
eb79bd2
fix bugs in SSP classes
yi-jia-li Jun 13, 2025
c299915
add a demo
yi-jia-li Jun 13, 2025
3a92a3c
Merge branch 'add_cue' into add_cue
yi-jia-li Jun 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Release
on:
release:
types: [created]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build_wheels:
name: Build wheel for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- "ubuntu-22.04"
- "macos-14"
steps:
- uses: pypa/cibuildwheel@v2.16.5
- uses: actions/upload-artifact@v4
with:
name: binary-${{ matrix.os }}
path: ./wheelhouse/*.whl
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U build twine
- name: Build sdist
run: |
python -m pip install -U pip
python -m build --sdist .
- uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz

publish:
environment:
name: pypi
url: https://pypi.org/p/fsps
permissions:
id-token: write
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v4
with:
path: dist
merge-multiple: true
- uses: pypa/gh-action-pypi-publish@v1.8.12
17 changes: 9 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Tests
on:
push:
branches: [main]
branches: [main, v2.0]
pull_request:
branches: [main]
branches: [main, v2.0]

jobs:
tests:
Expand All @@ -12,29 +12,30 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9"]
python-version: ["3.9", "3.11"]
os: [ubuntu-latest, macos-latest]
steps:
- name: Clone the repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Clone fsps
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: cconroy20/fsps
path: fsps
- name: Install dependencies
run: |
python -m pip install -U pip pytest
python -m pip install -U fsps astro-sedpy astropy
python -m pip install -U six dynesty
python -m pip install -U scipy
python -m pip install -U dynesty
python -m pip install .
env:
SPS_HOME: ${{ github.workspace }}/fsps
- name: Run tests
run: python -m pytest --durations=0 --maxfail=1 -vs tests/
run: python -m pytest --durations=0 --maxfail=1 -W ignore::DeprecationWarning --ignore tests/misc/ -vs tests/
env:
SPS_HOME: ${{ github.workspace }}/fsps
8 changes: 7 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.10"

sphinx:
configuration: doc/conf.py

python:
version: 3.7
install:
- requirements: doc/requirements.txt
- method: pip
Expand Down
27 changes: 1 addition & 26 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
@@ -1,26 +1 @@
Author:

- `Ben Johnson (Harvard) <https://github.com/bd-j>`_

Direct contributions to the code base:

- `Gabe Brammer <https://github.com/gbrammer>`_
- `James Guillochon <https://github.com/guillochon>`_
- `Joel Leja <https://github.com/jrleja>`_
- `John Moustakas <https://github.com/moustakas>`_
- `Josh Speagle <https://github.com/joshspeagle>`_

Comments, corrections & suggestions:

- Antara Basu-Zych
- Kevin Bundy
- Phill Cargile
- Charlie Conroy
- Johnny Greco
- Song Huang
- Gourav Khullar
- Sidney Lower
- Dylan Nelson
- Imad Pasha
- Dan Weisz
- Tom Zick
The list of contributors can be found `on GitHub <https://github.com/bd-j/prospector/graphs/contributors>`_.
23 changes: 22 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
.. :changelog:

v1.4.0 (2024-07-06)
+++++++++++++++++++
- Adds the stochastic SFH hyper-prior courtesy @jwan22
- Adds an explicit check of any provided emission line names and fixes a bug
when multiple emission lines are ignored

Last release before v2.0

`Full Changelog <https://github.com/bd-j/prospector/compare/v1.3.0...v1.4.0>`_


v1.3.0 (2024-03-27)
+++++++++++++++++++
- Adds the prospector-beta SFH priors and documentation courtesy @wangbingjie
- Bugfixes in emission line masking, polynomial regularization, sfr_ratio
clipping (h/t @mjastro, @wangbingjie, @davidjsetton)
- Documentation updates

`Full Changelog <https://github.com/bd-j/prospector/compare/v1.2.0...v1.3.0>`_


v1.2.0 (2022-12-31)
+++++++++++++++++++

Expand All @@ -10,7 +31,7 @@ v1.2.0 (2022-12-31)
- Fixes to the dynesty interface for dynesty >= 2.0 (h/t @mjastro)
- Fix sign error in Powell minimization (h/t @blanton144)
- Fix bugs in parameter template for emission line fitting.
- numeropus documentation updates including nebular emission details.
- numerous documentation updates including nebular emission details.


v1.1.0 (2022-02-20)
Expand Down
111 changes: 106 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,122 @@
<img src="doc/_static/logo_name_kh.png" height=75/> <!-- . -->
==========

Version 2.0! (in progress)
--------------------------

This is a major refactor to allow for multiple datasets (i.e. multiple spectra)
with different noise models and instrument parameters to constrain a single
galaxy model. Other updates may include cleaner stored outputs, interfaces with
additional nested samplers, and improved tretments of smoothing.

Work to do includes:

- [x] Convert to/from old style observation dictionaries
- [x] Put responsibility for Noise Models including outlier modeling in individual Observation instances
- [x] Make predictions even when there is no fittable data (e.g. model spectra when fitting photometry only)
- [x] Store Observation objects in HDF5, FITS, etc as structured arrays with metadata
- [x] Catch (and handle) emission line marginalization if spectra overlap.
- [x] Structured ndarray for output chains and lnlikehoods
- [x] Update docs
- [x] Update demo scripts
- [x] Account for undersampled spectra via explicit rebinning.
- [ ] Account for undersampled spectra via a square convolution in pixel space.
- [x] Implement UltraNest and Nautilus backends
- [x] Test i/o with structured arrays
- [ ] Structured ndarray for derived parameters
- [ ] Store samples of spectra, photometry, and mfrac (blobs)
- [ ] Update notebooks
- [ ] Update plotting module
- [ ] Test multi-spectral calibration, smoothing, and noise modeling
- [ ] Test smoothing accounting for library, instrumental & physical smoothing
- [ ] Implement an emulator-based SpecModel class

Nebular emission is computed using [`cuejax`](https://github.com/efburnham/cue), a jax-compatible version of [`cue`](https://github.com/yi-jia-li/cue) ([Li et al. 2024](https://ui.adsabs.harvard.edu/abs/2025ApJ...986....9L/abstract)).

To install the `cuejax` version adapted to work with this branch of `prospector`:
```bash
git clone https://github.com/yi-jia-li/cue.git
cd cue
git checkout cuejax
pip install .
```

The ionizing spectrum that powers the nebular emission can either be modeled as a 4-segment power-law or fixed to the spectrum of stellar populations ([example](https://github.com/yi-jia-li/prospector/tree/add_cue/demo/prospector+cue.ipynb)):
```py
from prospect.models.templates import TemplateLibrary
TemplateLibrary["cue_nebular"] # Uses a power-law ionizing spectrum
TemplateLibrary["cue_stellar_nebular"] # Uses the stellar ionizing spectrum
```
**Note:** Dust emission is not yet fully implemented for compatibility with nebular emission.

Migration from < v2.0
---------------------

For many users the primary difference from v1.X will be that the data to predict
and fit a model to is now specified as a list of
`prospect.observation.Observation()` instances, instead of a single 'obs'
dictionary. There is a new convenience method to convert from the old 'obs'
dictionary format to the new specification. This can be used with existing
scripts as follows:

```py
# old build_obs function giving a dictionary
obs_dict = build_obs(**run_params)
# get convenience method
from prospect.observation import from_oldstyle
# make a new list of Observation instances from the dictionary
observations = from_oldstyle(obs_dict)
# verify and prepare for fitting; similar to 'obsutils.fix_obs()'
[obs.rectify() for obs in observations]
print(observations)
```

It is recommended to do the conversion within the `build_obs()` method, if
possible. This list of observations is then supplied to `fit_model`. Because
noise models are now attached explicitly to each observation, they do not need
to be generated separately or supplied to `fit_model()`, which no longer accepts
a `noise=` argument. For outlier models, the the noise model should be
instantiated with names for the outlier model that correspond to fixed or free
parameters of the model.

```py
from prospect.fitting import fit_model
output = fit_model(observations, model, sps, **config)
```

Another change is that spectral response functions (i.e. calibration vectors)
are now handled by specialized sub-classes of these `Observation` classes. See
the [spectroscopy docs](doc/spectra.rst) for details.

The interface to `write_model` has been changed and simplified. See
[usage](doc/usage.rst) for details.

Finally, the output chain or samples is now stored as a structured array, where
each row corresponds to a sample, and each column is a parameter (possibly
multidimensional). Additional information (such as sample weights, likelihoods,
and poster probabilities) are stored as additional datasets in the output. The
`unstructured_chain` dataset of the output contains an old-style simple
`numpy.ndarray` of shape `(nsample, ndim)`


Purpose
-------

[![Docs](https://readthedocs.org/projects/prospect/badge/?version=latest)](https://readthedocs.org/projects/prospect/badge/?version=latest)
[![Tests](https://github.com/bd-j/prospector/workflows/Tests/badge.svg)](https://github.com/bd-j/prospector/actions?query=workflow%3ATests)
[![arXiv](https://img.shields.io/badge/arXiv-2012.01426-b31b1b.svg)](https://arxiv.org/abs/2012.01426)
[![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/bd-j/prospector/blob/main/LICENSE)

Purpose
-------

Conduct principled inference of stellar population properties from photometric
and/or spectroscopic data. Prospector allows you to:

* Infer high-dimensional stellar population properties using parametric or
highly flexible SFHs (with nested or ensemble Monte Carlo sampling)

* Combine photometric and spectroscopic data from the UV to Far-IR rigorously
using a flexible spectroscopic calibration model and forward modeling many
aspects of spectroscopic data analysis.
* Combine multiple photometric, spectroscopic, and/or line flux datasets from
the UV to Far-IR rigorously using a flexible spectroscopic calibration model
and forward modeling many aspects of spectroscopic data analysis.

Read the [documentation](http://prospect.readthedocs.io/en/latest/) and the
code [paper](https://ui.adsabs.harvard.edu/abs/2021ApJS..254...22J/abstract).
Expand Down
3 changes: 1 addition & 2 deletions conda_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ cd $CODEDIR
git clone https://github.com/cconroy20/fsps.git
export SPS_HOME="$PWD/fsps"

# Create and activate environment (named 'prospector')
git clone https://github.com/bd-j/prospector.git
cd prospector
conda env create -f environment.yml
conda env create -f environment.yml -n prospector
conda activate prospector
python -m pip install .

Expand Down
Loading