Skip to content

Commit

Permalink
Minor update in the installation instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasstolker committed Apr 6, 2022
1 parent 9424ad2 commit d7606bd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ Installation from PyPI
----------------------

.. important::
Before installing ``species``, it is required to separately install ``cython``:
Before installing ``species``, it is required to separately install ``cython`` and ``ultranest``:

.. code-block:: console
$ pip install cython
$ pip install ultranest
The installation of ``ultranest`` has caused problems on some machines. It is possible to skip the installation of that package, in which case it is still possible to use ``species``, apart from the functionalities that rely on `UltraNest <https://johannesbuchner.github.io/UltraNest/index.html>`_.

The ``species`` toolkit can be installed with the `pip package manager <https://packaging.python.org/tutorials/installing-packages/>`_:

Expand Down
2 changes: 1 addition & 1 deletion species/analysis/fit_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ def __init__(
automatically included in the fit, as it sets the
weight of the two components. Modeling blended data
is only supported by ``run_ultranest`` and
``run_multinest``.
``run_multinest``.
Blackbody parameters (with ``model='planck'``):
Expand Down
2 changes: 1 addition & 1 deletion species/data/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -3166,7 +3166,7 @@ def get_retrieval_spectra(
temp_nodes = dset.attrs["temp_nodes"]

else:
# For backward compatibility
# For backward compatibility
temp_nodes = None

# Get distance
Expand Down
4 changes: 3 additions & 1 deletion species/data/model_spectra.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ def add_model_grid(

else:
wavelength = None
print(f"Wavelength range (um) = {model_info['wavelength range'][0]} - {model_info['wavelength range'][1]}")
print(f"Wavelength range (um) = "
f"{model_info['wavelength range'][0]} -"
f"{model_info['wavelength range'][1]}")
print(f"Spectral resolution = {model_info['resolution']}")

if teff_range is None:
Expand Down

0 comments on commit d7606bd

Please sign in to comment.