Skip to content

Commit a090d34

Browse files
authored
Merge branch 'main' into patchwise_train
2 parents bae0855 + 125fb25 commit a090d34

37 files changed

+991
-442
lines changed

.all-contributorsrc

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"projectName": "deepsensor",
3-
"projectOwner": "tom-andersson",
3+
"projectOwner": "alan-turing-institute",
44
"skipCI": true,
55
"files": [
66
"README.md"
@@ -168,6 +168,26 @@
168168
"contributions": [
169169
"ideas"
170170
]
171+
},
172+
{
173+
"login": "JimCircadian",
174+
"name": "Jim Circadian",
175+
"avatar_url": "https://avatars.githubusercontent.com/u/731727?v=4",
176+
"profile": "http://inconsistentrecords.co.uk",
177+
"contributions": [
178+
"ideas",
179+
"projectManagement",
180+
"maintenance"
181+
]
182+
},
183+
{
184+
"login": "davidwilby",
185+
"name": "David Wilby",
186+
"avatar_url": "https://avatars.githubusercontent.com/u/24752124?v=4",
187+
"profile": "http://davidwilby.dev",
188+
"contributions": [
189+
"doc"
190+
]
171191
}
172192
]
173193
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ dist/*
1010
.tox/
1111
_build
1212
*.png
13+
deepsensor.egg-info/

CITATION.cff

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ authors:
1111
- given-names: Tom Robin
1212
family-names: Andersson
1313
14-
affiliation: British Antarctic Survey
14+
affiliation: Google DeepMind
1515
orcid: 'https://orcid.org/0000-0002-1556-9932'
16-
repository-code: 'https://github.com/tom-andersson/deepsensor'
16+
repository-code: 'https://github.com/alan-turing-institute/deepsensor'
1717
abstract: >-
1818
DeepSensor is a Python package for modelling environmental
1919
data with convolutional neural processes (ConvNPs).
@@ -38,5 +38,5 @@ keywords:
3838
- neural processes
3939
- active learning
4040
license: MIT
41-
version: 0.3.2
42-
date-released: '2023-10-18'
41+
version: 0.3.6
42+
date-released: '2024-02-02'

CONTRIBUTING.md

Lines changed: 58 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ If you'd like to find out more about DeepSensor, make sure to check out:
2020

2121
1. **README**: For a high-level overview of the project, please refer to our README.
2222
2. **Documentation**: For more detailed information about the project, please refer to
23-
our [documentation](tom-andersson.github.io/deepsensor/).
23+
our [documentation](https://alan-turing-institute.github.io/deepsensor).
2424
3. **Project Roadmap**: Familiarize yourself with our direction and goals by checking
25-
out [the project's roadmap](https://tom-andersson.github.io/deepsensor/community/roadmap.html).
25+
out [the project's roadmap](https://alan-turing-institute.github.io/deepsensor/community/roadmap.html).
2626

2727
## Get in touch
2828

@@ -45,48 +45,21 @@ us at [email protected].
4545
We welcome contributions of all kinds, be it code, documentation, raising issues, or community engagement. We
4646
encourage you to read through the following sections to learn more about how you can contribute to
4747

48-
### Contributing to the documentation
49-
50-
We use the Jupyter Book framework to build our documentation in the `docs/` folder.
51-
The documentation is written in
52-
Markdown and Jupyter Notebooks. The documentation is hosted on GitHub Pages and is automatically
53-
built and deployed using GitHub Actions after every commit to the `main` branch.
54-
55-
DeepSensor requires slightly unique documentation, because demonstrating the package requires
56-
both data and trained models.
57-
This makes it compute- and data-hungry to run some of the notebooks, and they cannot
58-
run on GitHub Actions.
59-
Therefore, all the notebooks are run locally - the code cell outputs are saved
60-
Please be careful about not clearing the outputs of the notebooks if you don't intend to.
61-
If DeepSensor is updated, some of the notebooks may
62-
become out of date and will need to be re-run.
63-
64-
Guide to regenerating the notebooks:
65-
* Install `cartopy` using `conda install -c conda-forge cartopy`
66-
* `pip install -r requirements/requirements.docs.txt`
67-
* Run the notebooks locally, noting that some of them may require a GPU and some
68-
assume that previous notebooks have been run.
69-
70-
Some relevant links for Juptyer Book and MyST:
71-
* https://jupyterbook.org/en/stable/intro.html
72-
* https://jupyterbook.org/en/stable/content/myst.html
73-
* https://jupyterbook.org/en/stable/reference/cheatsheet.html
74-
7548
### How to Submit Changes
7649

7750
We follow the same instructions for submitting changes to the project as those developed
7851
by [The Turing Way](https://github.com/the-turing-way/the-turing-way/blob/main/CONTRIBUTING.md#making-a-change-with-a-pull-request).
7952
In short, there are five steps to adding changes to this repository:
8053

8154
1. **Fork the Repository**: Start
82-
by [forking the DeepSensor repository](https://github.com/tom-andersson/deepsensor/fork).
55+
by [forking the DeepSensor repository](https://github.com/alan-turing-institute/deepsensor/fork).
8356
2. **Make Changes**: Ensure your code adheres to the style guidelines and passes all tests.
8457
3. **Commit and Push**: Use clear commit messages.
8558
4. **Open a Pull Request**: Ensure you describe the changes made and any additional details.
8659

8760
#### 1. Fork the Repository
8861

89-
Once you have [created a fork of the repository](https://github.com/tom-andersson/deepsensor/fork),
62+
Once you have [created a fork of the repository](https://github.com/alan-turing-institute/deepsensor/fork),
9063
you now have your own unique local copy of DeepSensor. Changes here won't affect anyone else's work,
9164
so it's a safe space to explore edits to the code!
9265

@@ -133,22 +106,68 @@ continuous integration as you make commits (which will help prevent stuff from b
133106
GitHub has a [nice introduction](https://guides.github.com/introduction/flow) to the pull request
134107
workflow, but please [get in touch](#get-in-touch) if you have any questions :balloon:.
135108

109+
### DeepSensor's documentation
110+
111+
You don't have to write code to contribute to DeepSensor.
112+
Another highly valuable way of contributing is helping with DeepSensor's [documentation](https://alan-turing-institute.github.io/deepsensor).
113+
See below for information on how to do this.
114+
115+
#### Background
116+
117+
We use the Jupyter Book framework to build our documentation in the `docs/` folder.
118+
The documentation is written in
119+
Markdown and Jupyter Notebooks. The documentation is hosted on GitHub Pages and is automatically
120+
built and deployed using GitHub Actions after every commit to the `main` branch.
121+
122+
DeepSensor requires slightly unique documentation, because demonstrating the package requires
123+
both data and trained models.
124+
This makes it compute- and data-hungry to run some of the notebooks, and they cannot
125+
run on GitHub Actions.
126+
Therefore, all the notebooks are run locally - the code cell outputs are saved in the .ipynb files
127+
and are rendered when the documentation is built.
128+
If DeepSensor is updated, some of the notebooks may become out of date and will need to be re-run.
129+
130+
Some relevant links for Juptyer Book and MyST:
131+
* https://jupyterbook.org/en/stable/intro.html
132+
* https://jupyterbook.org/en/stable/content/myst.html
133+
* https://jupyterbook.org/en/stable/reference/cheatsheet.html
134+
135+
#### Contributing to documentation
136+
137+
One easy way to contribute to the documentation is to provide feedback in [this issue](https://github.com/alan-turing-institute/deepsensor/issues/87) and/or in the DeepSensor Slack channel.
138+
139+
Another way to contribute is to directly edit or add to the documentation and open a PR:
140+
* Follow all the forking instructions above
141+
* Install the documentation requirements: `pip install -r requirements/requirements.docs.txt`
142+
* Option A: Editing a markdown file
143+
* Simply make your edits!
144+
* Option B: Editing a jupyter notebook file
145+
* This can be more involved... Firstly, reach out on the Slack channel to ask if anyone else is working on the same notebook file locally. Working one-at-a-time can save Jupyter JSON merge conflict headaches later!
146+
* If you are only editing markdown cells, just re-run those cells specifically to compile them
147+
* If you are editing code cells:
148+
* Install `cartopy` using `conda install -c conda-forge cartopy`
149+
* Run the all the code cells that the current cell depends on and any subsequent code cells that depend on the current cell (you may need to rerun the whole notebook)
150+
* Note: Some notebooks require a GPU and some assume that previous notebooks have been run
151+
* Please be careful about not clearing any code cell outputs that you don't intend to!
152+
* Once your changes have been made, regenerate the docs locally with `jupyter-book build docs --all` and check your changes have applied as expected
153+
* Push your changes and open a PR (see above)
154+
136155
## First-timers' Corner
137156

138157
If you're new to the project, we recommend starting with issues labeled
139-
as ["good first issue"](https://github.com/tom-andersson/deepsensor/issues?q=is:issue+is:open+label:%22good+first+issue%22).
158+
as ["good first issue"](https://github.com/alan-turing-institute/deepsensor/issues?q=is:issue+is:open+label:%22good+first+issue%22).
140159
These are typically simpler tasks that offer a great starting point. Browse these here.
141160

142161
There's also the
143-
label ["thoughts welcome"](https://github.com/tom-andersson/deepsensor/issues?q=is:issue+is:open+label:%22thoughts+welcome%22),
162+
label ["thoughts welcome"](https://github.com/alan-turing-institute/deepsensor/issues?q=is:issue+is:open+label:%22thoughts+welcome%22),
144163
which allows for you to contribute with discussion points in the issues, even if you don't want to
145164
or cannot contribute to the codebase.
146165

147166
If you feel ready for it, you can also open a new issue. Before you open a new issue, please check
148-
if any of [our open issues](https://github.com/tom-andersson/deepsensor/issues) cover your idea
167+
if any of [our open issues](https://github.com/alan-turing-institute/deepsensor/issues) cover your idea
149168
already. If you open a new issue, please follow our basic guidelines laid out in our issue
150169
templates, which you should be able to see if
151-
you [open a new issue](https://github.com/tom-andersson/deepsensor/issues/new/choose).
170+
you [open a new issue](https://github.com/alan-turing-institute/deepsensor/issues/new/choose).
152171

153172
## Reporting Bugs
154173

@@ -163,7 +182,7 @@ issues, so make sure you follow the correct format and ensure you include:
163182
## Recognising Contributions
164183

165184
We value and recognize every contribution. All contributors will be acknowledged in the
166-
[contributors](https://github.com/tom-andersson/deepsensor/tree/main#contributors) section of the
185+
[contributors](https://github.com/alan-turing-institute/deepsensor/tree/main#contributors) section of the
167186
README.
168187
Notable contributions will also be highlighted in our fortnightly community meetings.
169188

@@ -180,15 +199,15 @@ the following:
180199
You can see
181200
the [Emoji Key (Contribution Types Reference)](https://allcontributors.org/docs/en/emoji-key) for a
182201
list of valid <contribution> types and examples of how this command can be run
183-
in [this issue](https://github.com/tom-andersson/deepsensor/issues/58). The bot will then create a
202+
in [this issue](https://github.com/alan-turing-institute/deepsensor/issues/58). The bot will then create a
184203
Pull Request to add the contributor and reply with the pull request details.
185204

186205
**PLEASE NOTE: Only one contributor can be added with the bot at a time!** Add each contributor in
187206
turn, merge the pull request and delete the branch (`all-contributors/add-<username>`) before adding
188207
another one. Otherwise, you can end up with
189208
dreaded [merge conflicts](https://help.github.com/articles/about-merge-conflicts). Therefore, please
190209
check the open pull requests first to make sure there aren't
191-
any [open requests from the bot](https://github.com/tom-andersson/deepsensor/pulls/app%2Fallcontributors)
210+
any [open requests from the bot](https://github.com/alan-turing-institute/deepsensor/pulls/app%2Fallcontributors)
192211
before adding another.
193212

194213
What happens if you accidentally run the bot before the previous run was merged and you got those
@@ -201,7 +220,7 @@ will be very happy to help!
201220

202221
If you're stuck or need assistance:
203222

204-
- Check our [FAQ](https://tom-andersson.github.io/deepsensor/community/faq.html) section first.
223+
- Check our [FAQ](https://alan-turing-institute.github.io/deepsensor/community/faq.html) section first.
205224
- Reach out on Slack or via email for personalized assistance. (See ["Get in touch"](#get-in-touch)
206225
above for links.)
207226
- Consider pairing up with a another contributor for guidance. You can always find us in the Slack

0 commit comments

Comments
 (0)