Skip to content

Commit 969cb15

Browse files
committed
Merge branch 'module/power_spectrum' into module/halos
2 parents cb0b147 + 94dbae6 commit 969cb15

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1918
-591
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Description
22

33
## Checklist
4-
- [ ] Follow the [Contributor Guidelines](https://github.com/skypyproject/skypy/blob/master/CONTRIBUTING.md)
4+
- [ ] Follow the [Contributor Guidelines](https://github.com/skypyproject/skypy/blob/main/CONTRIBUTING.rst)
55
- [ ] Write unit tests
66
- [ ] Write documentation strings
77
- [ ] Assign someone from your working team to review this pull request

.github/workflows/codestyle.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: Code Style
22
on:
33
push:
44
branches:
5-
- master
5+
- main
66
- module/*
77
pull_request:
88
branches:
9-
- master
9+
- main
1010
- module/*
1111
jobs:
1212
flake8:

.github/workflows/compatibility.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ jobs:
99
fail-fast: false
1010
matrix:
1111
os: [ubuntu-latest]
12-
python: [3.9]
13-
toxenv: [py39-test, py39-test-dev]
14-
release: [master, latest]
12+
python: ['3.11']
13+
toxenv: [py311-test, py311-test-dev]
14+
release: [main, latest]
1515
steps:
1616
- name: Checkout Repository
1717
uses: actions/checkout@v2
1818
with:
1919
fetch-depth: 0
20-
- if: matrix.release != 'master'
20+
- if: matrix.release != 'main'
2121
name: Checkout Release
2222
run: |
2323
git checkout tags/$(curl -s https://api.github.com/repos/skypyproject/skypy/releases/${{ matrix.release }} | python -c "import sys, json; print(json.load(sys.stdin)['tag_name'])")

.github/workflows/tests.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: Tests
22
on:
33
push:
44
branches:
5-
- master
5+
- main
66
- module/*
77
pull_request:
88
branches:
9-
- master
9+
- main
1010
- module/*
1111
jobs:
1212
test:
@@ -19,24 +19,24 @@ jobs:
1919

2020
- name: latest supported versions
2121
os: ubuntu-latest
22-
python: 3.9
23-
toxenv: py39-test-all-latest-cov
22+
python: '3.11'
23+
toxenv: py311-test-all-latest-cov
2424
toxposargs: --cov-report=xml:${GITHUB_WORKSPACE}/coverage.xml
2525

2626
- name: oldest supported versions
2727
os: ubuntu-latest
28-
python: 3.6
29-
toxenv: py36-test-oldest
28+
python: 3.7
29+
toxenv: py37-test-oldest
3030

3131
- name: macOS latest supported
3232
os: macos-latest
33-
python: 3.9
34-
toxenv: py39-test-latest
33+
python: '3.11'
34+
toxenv: py311-test-latest
3535

3636
- name: Windows latest supported
3737
os: windows-latest
38-
python: 3.9
39-
toxenv: py39-test-latest
38+
python: '3.11'
39+
toxenv: py311-test-latest
4040

4141
steps:
4242
- name: Checkout Repository

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
Adam Amara <adam.amara@phys.ethz.ch> adamamara <adamamara@penguin>
1414
Coleman Krawczyk <coleman.krawczyk@gmail.com> CKrawczyk
1515
Ian Harry <ian.harry@ligo.org> <iwharry@googlemail.com>
16+
Lucia F. de la Bella <55983939+Lucia-Fonseca@users.noreply.github.com>
1617
Nicolas Tessore <n.tessore@ucl.ac.uk> <nicolas.tessore@manchester.ac.uk>
1718
Richard R <58728519+rrjbca@users.noreply.github.com> <rrjbca@users.noreply.github.com>

.zenodo.json

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
{
2727
"orcid": "0000-0002-1064-3400",
28-
"affiliation": "University of Manchester",
28+
"affiliation": "University of Portsmouth",
2929
"name": "Lucia F. de la Bella"
3030
},
3131
{
@@ -43,21 +43,31 @@
4343
"affiliation": "University of Manchester",
4444
"name": "Juan Pablo Cordero"
4545
},
46+
{
47+
"orcid": "0000-0003-1560-7959",
48+
"affiliation": "University of Portsmouth",
49+
"name": "Fox Davidson"
50+
},
4651
{
4752
"orcid": "0000-0002-8218-563X",
4853
"affiliation": "University of Portsmouth",
4954
"name": "Ginevra Favole"
5055
},
5156
{
5257
"orcid": "0000-0002-4437-0770",
53-
"affiliation": "University of Manchester",
58+
"affiliation": "University of Oxford, University of Manchester",
5459
"name": "Ian Harrison"
5560
},
5661
{
5762
"orcid": "0000-0002-5304-9372",
5863
"affiliation": "University of Portsmouth",
5964
"name": "Ian Harry"
6065
},
66+
{
67+
"orcid": "0000-0001-9994-1115",
68+
"affiliation": "University of Geneva",
69+
"name": "William G. Hartley"
70+
},
6171
{
6272
"orcid": "0000-0001-9233-2341",
6373
"affiliation": "University of Portsmouth",
@@ -80,14 +90,19 @@
8090
},
8191
{
8292
"orcid": "0000-0003-1291-1023",
83-
"affiliation": "University of Manchester",
84-
"name": "Richard Rollins"
93+
"affiliation": "University of Edinburgh",
94+
"name": "Richard P. Rollins"
8595
},
8696
{
8797
"orcid": "0000-0001-8685-2308",
8898
"affiliation": "University of Portsmouth",
8999
"name": "Philipp Sudek"
90100
},
101+
{
102+
"orcid": "0000-0002-6724-833X",
103+
"affiliation": "Institute of Astronomy and Astrophysics Academia Sinica",
104+
"name": "Sut-Ieng Tam"
105+
},
91106
{
92107
"orcid": "0000-0002-9696-7931",
93108
"affiliation": "UCL",
@@ -98,10 +113,20 @@
98113
"affiliation": "Institute of Astronomy and Astrophysics Academia Sinica",
99114
"name": "Keiichi Umetsu"
100115
},
116+
{
117+
"orcid": "0000-0001-9841-943X",
118+
"affiliation": "University of Portsmouth",
119+
"name": "Arthur E. Tolley"
120+
},
101121
{
102122
"orcid": "0000-0002-7627-8688",
103123
"affiliation": "University of Portsmouth",
104124
"name": "Andrew R. Williamson"
125+
},
126+
{
127+
"orcid": "0000-0003-3334-3037",
128+
"affiliation": "University of Manchester",
129+
"name": "Laura Wolz"
105130
}
106131
],
107132
"contributors": [

CITATION.rst

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
1+
Citation Guidelines
2+
===================
3+
4+
|JOSS| |Zenodo|
5+
6+
17
If you use SkyPy for work or research presented in a publication (whether
2-
directly, or as a dependency to another package) we recommend and encourage
8+
directly, or as a dependency of another package) we recommend and encourage
39
the following acknowledgment:
410

511
This research made use of SkyPy, a Python package for forward modeling
6-
astronomical surveys (SkyPy Collaboration, 2020).
12+
astronomical surveys (Amara et. al., 2021, SkyPy Collaboration, 202x).
13+
14+
where the citations are to our publication in the `Journal of Open Source
15+
Software`_ and the `Zenodo DOI`_ for the specific version of the software that
16+
you used. We also encourage citations within the main text wherever
17+
appropriate. DOIs and BibTeX keys are available through the links above.
18+
19+
.. _Journal of Open Source Software: https://joss.theoj.org/papers/10.21105/joss.03056
20+
.. _Zenodo DOI: https://zenodo.org/record/3755531
21+
722

8-
where (SkyPy Collaboration, 2020) is a citation to the software DOI for the
9-
specific version that you used. We also encourage you to cite the software DOI
10-
in the main text wherever appropriate. DOIs and BibTeX keys for each release
11-
can be found on Zenodo_.
23+
.. |JOSS| image:: https://joss.theoj.org/papers/10.21105/joss.03056/status.svg
24+
:target: https://doi.org/10.21105/joss.03056
1225

13-
.. _Zenodo: https://zenodo.org/record/3755531
26+
.. |Zenodo| image:: https://zenodo.org/badge/doi/10.5281/zenodo.4475347.svg
27+
:target: https://doi.org/10.5281/zenodo.3755531

CONTRIBUTING.rst

Lines changed: 48 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,45 @@
11
Contributor Guidelines
22
======================
33

4+
How to contribute
5+
-----------------
6+
We love contributions! SkyPy is open source,
7+
built on open source, and we'd love to have you hang out in our community.
8+
Whether you would like to contribute to SkyPy with your own piece of code or
9+
helping develop a concrete feature in SkyPy:
10+
11+
1. Read through our `Discussions Page`_ to start a new conversation and share your
12+
ideas or follow up an existing conversation on a particular feature.
13+
14+
2. Following the discussions, when you have a good idea of the specifics
15+
of the feature you wish to contribute, open an `Issue`_ describing the feature.
16+
17+
3. Then follow the `Contributor Guidelines`_ on the rest of this page to open
18+
a `Pull Request`_ to contribute the code implementing the new feature.
19+
20+
Members vs External contributions
21+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22+
23+
SkyPy allows contributions from two types of contributor: *Members* and *External Contributors*.
24+
These two categories are intended to allow contributions both from those who are willing and
25+
able to commit to being part of the SkyPy community and actively involved in the steering of the project,
26+
and those who wish to simply contribute code where a need has been identified.
27+
28+
1. SkyPy *Members* go through a simple onboarding process where their expertise and expected contributions
29+
are discussed and defined. Members have access to internal communication channels, they are involved in
30+
SkyPy decision making processes and attend quarterly meetings.
31+
Members are listed as a separate tier in author lists for SkyPy publications,
32+
with the classification of "Creators" in the Zenodo DoI.
33+
34+
2. *External Contributors* are able to develop, discuss and commit code in the same way as *Members*,
35+
but do not have the same responsibilities and opportunities for contributing to the guidance and management
36+
of SkyPy as a project. *External Contributors* are listed as a separate tier in author lists for SkyPy publications,
37+
with the classification of "Others" in the Zenodo DoI.
38+
39+
.. _Discussions Page: https://github.com/skypyproject/skypy/discussions
40+
.. _Issue: https://github.com/skypyproject/skypy/issues
41+
.. _Pull Request: https://github.com/skypyproject/skypy/pulls
42+
443
GitHub Workflow
544
---------------
645

@@ -32,12 +71,12 @@ Finally add the ``skypyproject`` repository as a *remote*. This will allow you t
3271
Create a branch for your new feature
3372
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3473

35-
Create a *branch* off the ``skypyproject`` master branch. Working on unique branches for each new feature simplifies the development, review and merge processes by maintining logical separation. To create a feature branch:
74+
Create a *branch* off the ``skypyproject`` main branch. Working on unique branches for each new feature simplifies the development, review and merge processes by maintining logical separation. To create a feature branch:
3675

3776
::
3877

3978
git fetch skypyproject
40-
git checkout -b <your-branch-name> skypyproject/master
79+
git checkout -b <your-branch-name> skypyproject/main
4180

4281

4382
Hack away!
@@ -73,7 +112,7 @@ When you feel that work on your new feature is complete, you should create a *Pu
73112
1. Go to `SkyPy Pull Requests <https://github.com/skypyproject/skypy/pulls>`_
74113
2. Click the green **New pull request** button
75114
3. Click **compare across forks**
76-
4. Confirm that the base fork is ``skypyproject/skypy`` and the base branch is ``master``
115+
4. Confirm that the base fork is ``skypyproject/skypy`` and the base branch is ``main``
77116
5. Confirm the head fork is ``<your-account>/skypy`` and the compare branch is ``<your-branch-name>``
78117
6. Give your pull request a title and fill out the the template for the description
79118
7. Click the green **Create pull request** button
@@ -91,22 +130,22 @@ A series of automated checks will be run on your pull request, some of which wil
91130
Updating your branch
92131
^^^^^^^^^^^^^^^^^^^^
93132

94-
As you work on your feature, new commits might be made to the ``skypyproject`` master branch. You will need to update your branch with these new commits before your pull request can be accepted. You can achieve this in a few different ways:
133+
As you work on your feature, new commits might be made to the ``skypyproject`` main branch. You will need to update your branch with these new commits before your pull request can be accepted. You can achieve this in a few different ways:
95134

96135
- If your pull request has no conflicts, click **Update branch**
97136
- If your pull request has conflicts, click **Resolve conflicts**, manually resolve the conflicts and click **Mark as resolved**
98-
- *merge* the ``skypyproject`` master branch from the command line:
137+
- *merge* the ``skypyproject`` main branch from the command line:
99138

100139
::
101140

102141
git fetch skypyproject
103-
git merge skypyproject/master
142+
git merge skypyproject/main
104143

105-
- *rebase* your feature branch onto the ``skypyproject`` master branch from the command line:
144+
- *rebase* your feature branch onto the ``skypyproject`` main branch from the command line:
106145
::
107146

108147
git fetch skypyproject
109-
git rebase skypyproject/master
148+
git rebase skypyproject/main
110149

111150

112151
**Warning**: It is bad practice to *rebase* commits that have already been pushed to a remote such as your fork. Rebasing creates new copies of your commits that can cause the local and remote branches to diverge. ``git push --force`` will **overwrite** the remote branch with your newly rebased local branch. This is strongly discouraged, particularly when working on a shared branch where you could erase a collaborators commits.
@@ -129,7 +168,7 @@ Before your pull request can be merged into the codebase, it will be reviewed by
129168
General Guidelines
130169
^^^^^^^^^^^^^^^^^^
131170

132-
- SkyPy is compatible with Python>=3.6 (see `setup.cfg <https://github.com/skypyproject/skypy/blob/master/setup.cfg>`_). SkyPy *does not* support backwards compatibility with Python 2.x; `six`, `__future__` and `2to3` should not be used.
171+
- SkyPy is compatible with Python>=3.7 (see `setup.cfg <https://github.com/skypyproject/skypy/blob/main/setup.cfg>`_). SkyPy *does not* support backwards compatibility with Python 2.x; `six`, `__future__` and `2to3` should not be used.
133172
- All contributions should follow the `PEP8 Style Guide for Python Code <https://www.python.org/dev/peps/pep-0008/>`_. We recommend using `flake8 <https://flake8.pycqa.org/>`__ to check your code for PEP8 compliance.
134173
- Importing SkyPy should only depend on having `NumPy <https://www.numpy.org>`_, `SciPy <https://www.scipy.org/>`_ and `Astropy <https://www.astropy.org/>`__ installed.
135174
- Code is grouped into submodules based on broad science areas e.g. `galaxies <https://skypy.readthedocs.io/en/stable/galaxies.html>`_. There is also a `utils <https://skypy.readthedocs.io/en/stable/utils/index.html>`_ submodule for general utility functions.
@@ -150,7 +189,6 @@ All public classes, methods and functions require docstrings. You can build docu
150189
- Description
151190
- Parameters
152191
- Notes
153-
- Examples
154192
- References
155193

156194
For more information see the Astropy guide to `Writing Documentation <https://docs.astropy.org/en/stable/development/docguide.html>`_.

0 commit comments

Comments
 (0)