-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Several changes in the documentation, and the addition of a conda env…
…ironment configuration
- Loading branch information
Showing
5 changed files
with
68 additions
and
20 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,17 +1,39 @@ | ||
Installation | ||
============ | ||
|
||
``p_winds`` requires the packages ``numpy``, ``scipy``, and ``astropy``. Installing ``astroquery`` is also recommended. | ||
``p-winds`` requires the packages ``numpy``, ``scipy``, and ``astropy`` for | ||
running its main calculations. Installing ``astroquery`` and ``matplotlib`` is | ||
also recommended. | ||
|
||
The recommended way to install ``p-winds`` and its dependencies is through a | ||
``conda`` environment and then compiling it from source. Installing it in an | ||
environment is not strictly necessary (you can just skip to the compiling from | ||
source if you prefer), but it is a good practice, especially because ``p-winds`` | ||
is currently an alpha release. | ||
|
||
First, clone the repository: | ||
|
||
.. code-block:: bash | ||
git clone https://github.com/ladsantos/p-winds.git | ||
And then navigate to it, and install it: | ||
Now create the ``conda`` environment. This command will install all the | ||
necessary dependencies and useful packages at their most up-to-date versions | ||
inside the environment ``p_env``. Navigate to the source folder and execute: | ||
|
||
.. code-block:: bash | ||
cd p-winds | ||
conda env create -f p-winds_environment.yml | ||
Next, activate the ``p_env`` environment: | ||
|
||
.. code-block:: bash | ||
conda activate p_env | ||
Finally, compile ``p-winds`` from source: | ||
|
||
.. code-block:: bash | ||
python setup.py install |
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,21 @@ | ||
name: p_env | ||
|
||
channels: | ||
- conda-forge | ||
- defaults | ||
|
||
dependencies: | ||
- python=>3.7 | ||
- numpy=>1.19 | ||
- scipy>=1.6 | ||
- matplotlib>=3.3 | ||
- astropy>=4.2 | ||
- astroquery>=0.4 | ||
- pytest>=6.2 | ||
- sphinx>=3.4 | ||
- ipykernel | ||
- nbsphinx | ||
- numpydoc | ||
- sphinx_rtd_theme | ||
- pip | ||
- setuptools |