Skip to content

Commit 75b63f3

Browse files
committed
doc: added contributing file
1 parent 42b1cf5 commit 75b63f3

File tree

4 files changed

+168
-11
lines changed

4 files changed

+168
-11
lines changed

CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
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.
11+
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 at [Konrad's email](konradwerys2@gmail.com). All
59+
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

CONTRIBUTING.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Contributing to TOMATO
2+
We want to make contributing to this project as easy and transparent as
3+
possible.
4+
5+
## Our Development Process
6+
We use GitHub to sync code to and from our internal repository. We'll use GitHub
7+
to track issues and feature requests, as well as accept pull requests.
8+
9+
## Issues
10+
We use GitHub issues to track public bugs. Please ensure your description is
11+
clear and has sufficient instructions to be able to reproduce the issue.
12+
13+
## Report bugs using Github's [issues](https://github.com/MRKonrad/tomato/issues)
14+
We use GitHub issues to track public bugs. Report a bug by [opening a new issue](); it's that easy!
15+
16+
17+
## Pull Requests
18+
We actively welcome your pull requests.
19+
20+
1. Fork the repo and create your branch from `master`.
21+
2. If you've added code that should be tested, add tests.
22+
3. If you've changed APIs, update the documentation.
23+
4. Ensure the test suite passes.
24+
5. Make sure your code lints.
25+
6. Issue that pull request!
26+
27+
## Any contributions you make will be under the MIT Software License
28+
In short, when you submit code changes, your submissions are understood to be under the same
29+
[MIT License](http://choosealicense.com/licenses/mit/) that covers the project.
30+
Feel free to contact the maintainers if that's a concern.
31+
32+
## Coding style
33+
* Write code compatible with C++98
34+
* Use underscore (`_variable`) in the name of a class member variable.
35+
* C++98 does not allow me to use constructor delegation. Using methods like `setAllPointersToNull()` to make up for it.
36+
* Order of methods in a class definition:
37+
* functional (calculation, helpers etc)
38+
* getters/setters
39+
* disp()
40+
* constructors/destructors
41+
* In **copy constructors** copy primitive types, set all pointers to zero.
42+
43+
## License
44+
By contributing to Draft.js, you agree that your contributions will be licensed
45+
under its BSD license.
46+
47+
## References
48+
This document was adapted from the open-source contribution guidelines for
49+
[Facebook's Draft](https://github.com/facebook/draft-js/blob/a9316a723f9e918afde44dea68b5f9f39b7d9b00/CONTRIBUTING.md)
50+
and [qMRLab](https://github.com/qMRLab/qMRLab/blob/master/CONTRIBUTING.md).

README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,6 @@ Download https://www.microsoft.com/en-us/download/details.aspx?id=48145 as sugge
4242
5. Fast calculation.
4343
6. Easily interfaced to calculation environments MATLAB, IDL and Python.
4444

45-
# Coding style
46-
47-
* Underscore (`_variable`) means a class member variable.
48-
* C++98 does not allow me to use constructor delegation. I am using methods like `setAllPointersToNull()` to make up for it.
49-
* Order of methods in a class definition:
50-
* functional (calculation, helpers etc)
51-
* getters/setters
52-
* disp()
53-
* constructors/destructors
54-
* In **copy constructors** copy primitive types, set all pointers to zero.
55-
5645
# Notes
5746

5847
* **Continuous integration** was tested [in this repo](https://github.com/MRKonrad/ContinousIntegrationPlayground).

scriptsRun/codeocean.sh

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/usr/bin/env bash
2+
3+
# In this script a sample use of TOMATO software is presented
4+
# The TOMATO code can be found here: https://github.com/MRKonrad/tomato
5+
# Binaries used here have been build in continous integration systems, their scripts can be found here:
6+
# Travis (Linux and Osx): https://github.com/MRKonrad/tomato/blob/master/.travis.yml
7+
# Appveyor (Windows): https://github.com/MRKonrad/tomato/blob/master/.appveyor.yml
8+
# The code has not been built using Codeocean to avoid redundancy with the builds listed above
9+
10+
echo ""
11+
echo "### Get TOMATO executable"
12+
curl -L -O https://github.com/MRKonrad/tomato/releases/download/v0.4/TomatoExe_v0.4_linux.zip
13+
unzip -a -q TomatoExe_v0.4_linux.zip
14+
15+
echo ""
16+
echo "### Get some sample data"
17+
mkdir testData
18+
cd testData
19+
curl -L -O https://github.com/MRKonrad/tomato/releases/download/v0.4/testData.zip
20+
unzip -a -q testData.zip
21+
cd ..
22+
23+
echo ""
24+
echo "### Check the contents of the main folder"
25+
ls -la
26+
27+
echo ""
28+
echo "### Check the contents of the data folder"
29+
ls -la testData
30+
31+
echo ""
32+
echo "### Run an example"
33+
echo "### the configuration file (tomatoConfig_Shmolli_inputFilePaths.yaml) contains all the adjustable calculation parameters"
34+
./TomatoExe testData/tomatoConfig_Shmolli_inputFilePaths.yaml
35+
36+
echo ""
37+
echo "### Check the contents of the output folder with T1 maps"
38+
ls -la testData/tomatoOutput_Shmolli/map
39+
40+
echo ""
41+
echo "### Check the contents of the output folder with other maps"
42+
ls -la testData/tomatoOutput_Shmolli/fitparams

0 commit comments

Comments
 (0)