You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+31-7Lines changed: 31 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,18 +12,24 @@ The core feature of Halotools is a modular platform for creating mock universes
12
12
13
13
The code is publicly available at https://github.com/astropy/halotools.
14
14
15
-
Documentation
15
+
Installation
16
16
-------------
17
-
The latest build of the documentation can be found at http://halotools.readthedocs.io. The documentation includes installation instructions, quickstart guides and step-by-step tutorials. The *Basic features* section below gives an overview of the primary functionality of the package.
17
+
The simplest way to install the latest release of the code is with conda-forge::
18
18
19
+
conda install -c conda-forge halotools
19
20
20
-
Installation
21
-
-------------
21
+
Or alternatively, you can install using pip::
22
+
23
+
pip install halotools
22
24
23
25
You can find detailed installation instructions
24
26
in the **Package Installation** section of http://halotools.readthedocs.io. After installing the package, you should navigate to the *Quickstart Guides and Tutorials* section and follow the *Getting started with Halotools* 10-minute tutorial. This will get you set up with the default halo catalog so that you can quickly get started with creating mock galaxy populations.
25
27
26
28
29
+
Documentation
30
+
-------------
31
+
The latest build of the documentation can be found at http://halotools.readthedocs.io. The documentation includes installation instructions, quickstart guides and step-by-step tutorials. The *Basic features* section below gives an overview of the primary functionality of the package.
32
+
27
33
28
34
Basic features
29
35
--------------
@@ -107,7 +113,7 @@ Although the **sim_manager** provides an object-oriented framework for creating
107
113
Project status
108
114
--------------
109
115
110
-
Halotools is a fully open-source package with contributing scientists spread across many universities. The latest stable release of the package, v0.7, is now available on pip and conda-forge. You can also install the development version of the package by cloning the master branch on GitHub and locally building the source code, as described in the installation instructions.
116
+
Halotools is a fully open-source package with contributing scientists spread across many universities. The latest stable release of the package, v0.8, is now available on pip and conda-forge. You can also install the development version of the package by cloning the master branch on GitHub and locally building the source code, as described in the installation instructions.
111
117
112
118
113
119
## Asking questions and staying up-to-date
@@ -117,8 +123,26 @@ You can contact Andrew Hearin directly by email at ahearin-at-anl-dot-gov, or by
117
123
118
124
Citing Halotools
119
125
----------------
120
-
If you use Halotools modules to support your science publication, we ask that you cite the code-release paper, http://arxiv.org/abs/1606.04106 paper, ideally taking note of the version of the code you used, e.g., v0.7. Depending on what modules you use, other citations may also be appropriate; see the **License and Citation Information** section of http://halotools.readthedocs.io for further information about how to properly cite Halotools and its supporting science and software.
121
-
126
+
If you use Halotools modules to support your science publication, please cite `Hearin et al. (2017) <https://arxiv.org/abs/1606.04106>`_, ideally taking note of the version of the code you used, e.g., v0.8::
127
+
128
+
@ARTICLE{halotools,
129
+
author = {{Hearin}, Andrew P. and {Campbell}, Duncan and {Tollerud}, Erik and {Behroozi}, Peter and {Diemer}, Benedikt and {Goldbaum}, Nathan J. and {Jennings}, Elise and {Leauthaud}, Alexie and {Mao}, Yao-Yuan and {More}, Surhud and {Parejko}, John and {Sinha}, Manodeep and {Sip{\"o}cz}, Brigitta and {Zentner}, Andrew},
130
+
title = "{Forward Modeling of Large-scale Structure: An Open-source Approach with Halotools}",
131
+
journal = {The Astronomical Journal},
132
+
keywords = {cosmology: theory, galaxies: halos, galaxies: statistics, large-scale structure of universe, Astrophysics - Instrumentation and Methods for Astrophysics, Astrophysics - Cosmology and Nongalactic Astrophysics, Astrophysics - Astrophysics of Galaxies},
Copy file name to clipboardExpand all lines: docs/install.rst
+8-11Lines changed: 8 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,12 @@ Package Installation
7
7
To install Halotools, you can use conda-forge, pip, or clone the repo from GitHub and build the source code.
8
8
Either way, be sure to read the :ref:`halotools_dependencies` section prior to installation.
9
9
10
-
Using pip
11
-
====================
10
+
Using conda-forge and pip
11
+
=========================
12
12
13
13
The simplest way to install the latest release of the code is with conda-forge.
14
14
If you will be :ref:`installing_halotools_with_virtualenv`, activate the environment before installing::
15
15
16
-
17
16
conda install -c conda-forge halotools
18
17
19
18
Alternatively, you can install using pip::
@@ -65,7 +64,7 @@ All official releases of the code are tagged with their version name, e.g., v0.7
65
64
To install a particular release::
66
65
67
66
git checkout v0.7
68
-
python setup.py install
67
+
pip install .
69
68
70
69
This will install the v0.7 release of the code. Other official release versions (e.g., v0.5) can be installed similarly.
71
70
@@ -75,7 +74,7 @@ Installing the most recent master branch
75
74
If you prefer to use the most recent version of the code::
76
75
77
76
git checkout master
78
-
python setup.py install
77
+
pip install .
79
78
80
79
This will install the master branch of the code that is currently under development. While the features in the official releases have a stable API, new features being developed in the master branch may not. However, the master branch may have new features and/or performance enhancements that you may wish to use for your science application. A concerted effort is made to ensure that only thoroughly tested and documented code appears in the public master branch, though Halotools users should be aware of the distinction between the bleeding edge version in master and the official release version available through pip.
81
80
@@ -110,28 +109,26 @@ Dependencies
110
109
111
110
If you install halotools using conda or pip, then most of your dependencies will be handled for you automatically. The only additional dependency you may need is:
112
111
113
-
- `h5py <http://h5py.org/>`_: 2.5 or later
112
+
- `h5py <http://h5py.org/>`_: 3.7 or later
114
113
115
114
The h5py package is used for fast I/O of large simulated datasets.
116
115
117
116
If you did not use conda or pip, then you should be aware of the following strict requirements:
118
117
119
-
- `Python <http://www.python.org/>`_: 3.7.x
118
+
- `Python <http://www.python.org/>`_: 3.9.x
120
119
121
120
- `Numpy <http://www.numpy.org/>`_: 1.9 or later
122
121
123
122
- `Scipy <http://www.scipy.org/>`_: 0.15 or later
124
123
125
-
- `Cython <http://www.cython.org/>`_: 0.23 or later
124
+
- `Cython <http://www.cython.org/>`_: 0.29.32 or later
126
125
127
-
- `Astropy`_: 4.0 or later
126
+
- `Astropy`_: 5.0 or later
128
127
129
128
- `BeautifulSoup <http://www.crummy.com/software/BeautifulSoup/>`_: For crawling the web for halo catalogs.
130
129
131
130
- `Requests <http://docs.python-requests.org/en/latest/>`_: Also for crawling the web for halo catalogs.
132
131
133
-
- `h5py <http://h5py.org/>`_: 2.5 or later
134
-
135
132
Any of the above can be installed with either pip or conda.
Copy file name to clipboardExpand all lines: docs/quickstart_and_tutorials/development/getting_started.rst
+4-30Lines changed: 4 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,39 +11,13 @@ Then install the dependencies listed on the :ref:`step_by_step_install` page.
11
11
Code
12
12
====
13
13
14
-
Halotools contains a compiled component. To compile all cython (``.pyx``) files inplace run, ::
15
-
16
-
python3 setup.py build_ext --inplace
17
-
18
-
If you modify a ``.pyx`` file use the same command to recompile it. Subsequent runs will only compile files whose source has changed and so will be much quicker.
19
-
20
-
Halotools also has comprehensive unit tests and uses pytest. To run all tests, assuming you are in the base of the repository, first change directory into ``halotools`` and then run ``pytest``. ::
21
-
22
-
cd halotools
23
-
pytest
24
-
25
-
If you have made a change and only want to run a subset of tests run, ::
26
-
27
-
pytest -k tests_matching_this_string_will_run
28
-
29
-
Run ``pytest --help`` for a full list of options.
14
+
Halotools testing is handled with tox::
30
15
16
+
tox -e test
31
17
32
18
Docs
33
19
====
34
20
35
-
First ensure that the halotools package and sphinx are installed. From the base of the repository run, ::
36
-
37
-
pip3 install -e .
38
-
pip3 install sphinx==1.3.1 # see docs/conf.py for the sphinx version
39
-
40
-
Then build documentation with, ::
41
-
42
-
cd docs
43
-
make html
44
-
45
-
You can see the built documentation in ``docs/_build/html/``. The easiest way to view it in your browser is to spin up a local server. One way to do this is to run, from the built directory, ::
46
-
47
-
python3 -m http.server
21
+
Then build documentation with tox, ::
48
22
49
-
The docs should then be viewable at ``localhost:8000`` (the port will be logged when you start the server).
0 commit comments