Skip to content

Commit d6c1070

Browse files
authored
Merge pull request #20 from HealthBioscienceIDEAS/15-reproducible-repo
15 - reproducible repo
2 parents f3466a6 + 2c21f98 commit d6c1070

10 files changed

Lines changed: 323 additions & 77 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
name: "\U0001F41B Bug Report"
3+
about: If you are pretty sure you are getting a bug, please create a report to help us improve this work
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
11+
### 🐛Bug
12+
<!-- A clear and concise description of what the bug is. Please use a short, concise title for the bug and elaborate here -->
13+
14+
15+
### To reproduce
16+
17+
<!-- What did you do? -->
18+
<!-- Please provide a minimal working example, if possible: https://stackoverflow.com/help/minimal-reproducible-example -->
19+
20+
```python
21+
# Your code here
22+
```
23+
24+
### Expected behavior
25+
26+
<!-- What did you expect? -->
27+
<!-- A clear and concise description of what you expected to happen. -->
28+
29+
### Actual behavior
30+
31+
<!-- What did you get? -->
32+
<!-- A clear and concise description of what actually happens. -->
33+
<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->
34+
35+
```python-traceback
36+
# Paste the whole error stack trace here
37+
```
38+
39+
### System info
40+
41+
Output of your application
42+
43+
```
44+
# Paste here the output of that command in a terminal
45+
```
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: "\U0001F680 Feature Request"
3+
about: Submit a proposal/request for a new feature
4+
title: ''
5+
labels: 'enhancement'
6+
assignees: ''
7+
8+
---
9+
10+
### 🚀 Feature
11+
<!-- A clear and concise description of the feature proposal -->
12+
13+
### Motivation
14+
<!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too -->
15+
16+
### Pitch
17+
<!-- A clear and concise description of what you want to happen. -->
18+
19+
### Alternatives
20+
<!-- A clear and concise description of any alternative solutions or features you've considered, if any. -->
21+
22+
### Additional context
23+
<!-- Add any other context or screenshots about the feature request here. -->
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
name: "\U00002757 Something is not working"
3+
about: If something is not working as expected but you're not sure if it's a bug, please follow the instructions in this template.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
11+
### Problem
12+
<!-- A clear and concise description of what the bug is. Please use a short, concise title for the bug and elaborate here -->
13+
14+
15+
### To reproduce
16+
<!-- What did you do? -->
17+
<!-- Please provide a minimal working example, if possible: -->
18+
<!-- https://stackoverflow.com/help/minimal-reproducible-example -->
19+
<!-- Here's another useful resource: "How To Ask Questions The Smart Way" -->
20+
<!-- http://www.catb.org/~esr/faqs/smart-questions.html -->
21+
22+
```python
23+
# Your code here
24+
```
25+
26+
### Expected behavior
27+
<!-- What did you expect? -->
28+
<!-- A clear and concise description of what you expected to happen. -->
29+
30+
### Actual behavior
31+
<!-- What did you get? -->
32+
<!-- A clear and concise description of what actually happens. -->
33+
<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->
34+
35+
```python-traceback
36+
# Paste the *full* error stack trace here
37+
```
38+
39+
### System info
40+
Output of application
41+
42+
```
43+
# Paste here the output of that command in a terminal
44+
```

.github/pull_request_template.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!-- Replace {issue_number} with the issue that will be closed after merging this PR -->
2+
## Description
3+
Fixes #{issue_number}: A few sentences describing the changes proposed in this pull request.
4+
5+
## Type of change
6+
Please delete options accordingly to the description.
7+
8+
<!-- Write an `x` in all the boxes that apply -->
9+
- [ ] Bug fix (non-breaking change which fixes an issue)
10+
- [ ] New feature (non-breaking change which adds functionality)
11+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
12+
- [ ] This change requires a documentation update
13+
14+
15+
### Suggested Checklist
16+
<!-- You do not need to complete all the items by the time you submit the pull request, but most likely the changes will only be merged if all the tasks are done. -->
17+
18+
<!-- Write an `x` in all the boxes that apply -->
19+
- [ ] I have performed a self-review of my own code
20+
- [ ] I have made corresponding changes to the documentation
21+
- [ ] My changes generate no new warnings
22+
- [ ] I have commented my code, particularly in hard-to-understand areas
23+
- [ ] I have read the [`CONTRIBUTING`](https://github.com/HealthBioscienceIDEAS/Medical-Image-Registration-Short-Course/blob/main/CONTRIBUTING.md) docs
24+
- [ ] My code passes, following the style guidelines `pre-commit run -a`
25+
- [ ] My code is properly tested with `pytest -sv tests`
26+
- [ ] This pull request is ready to be reviewed
27+
- [ ] Make sure your branch is up-to-date with main branch. See below a general example if `rebase` is need.
28+
```
29+
git checkout main
30+
git pull origin main
31+
git checkout FEATURE_BRANCH
32+
git rebase main
33+
#git status
34+
#edit conflicting files with your editor
35+
#git rebase --continue
36+
#git add .
37+
git push --force origin FEATURE_BRANCH
38+
```

CODE_OF_CONDUCT.md

Lines changed: 73 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,77 @@
1-
---
2-
title: "Contributor Code of Conduct"
3-
---
1+
# Contributor Covenant Code of Conduct
42

5-
As contributors and maintainers of this project,
6-
we pledge to follow the [The Carpentries Code of Conduct][coc].
3+
## Our Pledge
74

8-
Instances of abusive, harassing, or otherwise unacceptable behavior
9-
may be reported by following our [reporting guidelines][coc-reporting].
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to make participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
1011

12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies within all project spaces, and it also applies when
49+
an individual is representing the project or its community in public spaces.
50+
Examples of representing a project or community include using an official
51+
project e-mail address, posting via an official social media account, or acting
52+
as an appointed representative at an online or offline event. Representation of
53+
a project may be further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team opening a [new issue](https://github.com/HealthBioscienceIDEAS/Medical-Image-Registration-Short-Course/issues).
59+
All complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq
1177

12-
[coc-reporting]: https://docs.carpentries.org/topic_folders/policies/incident-reporting.html
13-
[coc]: https://docs.carpentries.org/topic_folders/policies/code-of-conduct.html

CONTRIBUTING.md

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
## Contributing
1+
# Contributing to `Medical-Image-Registration-Short-Course`
2+
👍🎉 First off, thanks for taking the time to contribute! 🎉👍
23

34
[The Carpentries][cp-site] ([Software Carpentry][swc-site], [Data
45
Carpentry][dc-site], and [Library Carpentry][lc-site]) are open source
@@ -20,21 +21,17 @@ The easiest way to get started is to file an issue to tell us about a spelling
2021
mistake, some awkward wording, or a factual error. This is a good way to
2122
introduce yourself and to meet some of our community members.
2223

23-
1. If you do not have a [GitHub][github] account, you can [send us comments by
24-
email][contact]. However, we will be able to respond more quickly if you use
25-
one of the other methods described below.
24+
1. If you have a [GitHub][github] account, or are willing to [create
25+
one][github-join], but do not know how to use Git,
26+
you can open an issue (bug report, feature request, or something is not working)
27+
https://github.com/HealthBioscienceIDEAS/Medical-Image-Registration-Short-Course/issues/new/choose
28+
This allows us to assign the item to someone and to respond to it in a threaded discussion.
2629

27-
2. If you have a [GitHub][github] account, or are willing to [create
28-
one][github-join], but do not know how to use Git, you can report problems
29-
or suggest improvements by [creating an issue][issues]. This allows us to
30-
assign the item to someone and to respond to it in a threaded discussion.
31-
32-
3. If you are comfortable with Git, and would like to add or change material,
30+
2. If you are comfortable with Git, and would like to add or change material,
3331
you can submit a pull request (PR). Instructions for doing this are
3432
[included below](#using-github).
3533

36-
Note: if you want to build the website locally, please refer to [The Workbench
37-
documentation][template-doc].
34+
Note: if you want to build the website locally, please refer to [setting up][_setting_up].
3835

3936
### Where to Contribute
4037

@@ -72,24 +69,27 @@ platform. Our workshops typically contain a mixture of Windows, macOS, and
7269
Linux users; in order to be usable, our lessons must run equally well on all
7370
three.
7471

75-
### Using GitHub
72+
### :octocat: Using GitHub
7673

77-
#### Committing and pushing changes
78-
1. Clone this repo
74+
#### Setting up your repository locally.
75+
1. Generate your SSH keys as suggested [here](https://docs.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent)
76+
2. Clone the repository by typing (or copying) the following lines in a terminal
77+
```
78+
git clone git@github.com:HealthBioscienceIDEAS/Medical-Image-Registration-Short-Course.git
7979
```
80-
git clone git@github.com:UCL/real-time-ai-for-surgery.git
81-
```
82-
2. Create new branch using issue number
80+
81+
#### Committing and pushing changes
82+
1. Create new branch using issue number
8383
```
8484
git checkout -b ISSUENUMBER-branch-name
8585
```
86-
3. Commit changes and push to your branch
86+
2. Commit changes and push to your branch
8787
```
8888
git add .
8989
git commit -m 'short message (#ISSUENUMBER)'
9090
git push origin ISSUENUMBER-branch-name
9191
```
92-
4. Submit a Pull Request against the `main` branch.
92+
3. Submit a Pull Request against the `main` branch.
9393

9494
#### Pull Request (PR) and merge to `main` branch
9595
1. Select branch that contain your commits.
@@ -130,7 +130,7 @@ encourage others to do so. The maintainers are community volunteers, and have
130130
final say over what gets merged into the lesson.
131131

132132
### Other Resources
133-
133+
#### The Carpentries
134134
The Carpentries is a global organisation with volunteers and learners all over
135135
the world. We share values of inclusivity and a passion for sharing knowledge,
136136
teaching and learning. There are several ways to connect with The Carpentries
@@ -155,4 +155,3 @@ email][contact].
155155
[swc-lessons]: https://software-carpentry.org/lessons/
156156
[swc-site]: https://software-carpentry.org/
157157
[lc-site]: https://librarycarpentry.org/
158-
[template-doc]: https://carpentries.github.io/workbench/

README.md

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,44 @@
1-
## Medical-Image-Registration-Short-Course
1+
<div style="text-align: center;" align="center">
2+
<h1> :medical_symbol: Medical-Image-Registration-Short-Course </h1>
3+
<h2> <a href="https://healthbioscienceideas.github.io/Medical-Image-Registration-Short-Course/">:page_with_curl: Sandpaper</a> </h2>
4+
</div>
25

3-
This is the lesson repository for [Medical-Image-Registration-Short-Course](https://healthbioscienceideas.github.io/Medical-Image-Registration-Short-Course)
4-
5-
## Setting up and preview sandpaper
6+
## :nut_and_bolt: Setting up and preview sandpaper
67
See [details](_setting_up) to setup sandpaper and its dependencies. Otherwise you are ready to preview your work:
78
```
89
R
910
sandpaper::build_lesson()
1011
```
1112

13+
## 🤝 Contributing
14+
Medical-Image-Registration-Short-Course follows the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md).
15+
Contributions, issues and feature requests are welcome, so feel free to open new [issues](https://github.com/HealthBioscienceIDEAS/Medical-Image-Registration-Short-Course/issues/new/choose).
16+
We also suggest to checking [the contributing guide](CONTRIBUTING.md).
17+
18+
## :octocat: Cloning repository
19+
* Generate your SSH keys as suggested [here](https://docs.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent)
20+
* Clone the repository by typing (or copying) the following lines in a terminal
21+
```
22+
git clone git@github.com:HealthBioscienceIDEAS/Medical-Image-Registration-Short-Course.git
23+
```
24+
25+
## Maintainers
26+
* [Dave Cash](https://github.com/davecash75)
27+
* [Jamie Mcclelland](https://github.com/jamie-mcclelland)
28+
29+
## Contributors
30+
This project exists thanks to all the people who contribute.
31+
* [Dave Cash](https://github.com/davecash75)
32+
* [Jamie Mcclelland](https://github.com/jamie-mcclelland)
33+
* [Milan Malfait](https://github.com/milanmlft)
34+
* [Zakaria Senousy](https://github.com/zsenousy)
35+
* [Stephen Thompson](https://github.com/thompson318)
36+
* [Miguel Xochicale](https://github.com/mxochicale)
37+
38+
## Licensing and copyright
39+
Copyright 2024 University College London.
40+
`Medical-Image-Registration-Short-Course` is released under the CC BY 4.0 license.
41+
Please see the [license file](LICENSE.md) for details.
42+
43+
## Acknowledgements
44+
Funded by [UKRI Innovation Scholars](https://www.ukri.org/opportunity/innovation-scholars-data-science-training-in-health-bioscience/) Health and Bioscience IDEAS project (MR/V03863X/1)

0 commit comments

Comments
 (0)