Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
It is incredibly helpful to us when users report bugs, unexpected behaviour, or request features. You can do the following:
When doing any of these, please try to be as succinct, but detailed, as possible, and use a "Minimum Working Example" whenever applicable.
21cmSense could always use more documentation, whether as part of the official 21cmSense docs, in docstrings, or even on the web in blog posts, articles, and such.
Note that it is highly recommended to work in an isolated python environment with
all development requirements installed. This will also ensure that
pre-commit hooks will run that enforce the black
coding style. If you do not
install these requirements, you must manually run black before committing your changes,
otherwise your changes will likely fail continuous integration.
First fork 21cmSense (look for the "Fork" button), then clone the fork locally:
git clone [email protected]:your_name_here/21cmSense.git
Install pre-commit to do style checking automatically:
pre-commit install
Create a branch for local development:
git checkout -b name-of-your-bugfix-or-feature
When you're done making changes, run all the checks with pytest:
pytest
Commit your changes and push your branch to GitHub:
git add . git commit -m "Your detailed description of your changes." git push origin name-of-your-bugfix-or-feature
- Submit a pull request through the GitHub website.
If you need some code review or feedback while you're developing the code just make the pull request. You can mark the PR as a draft until you are happy for it to be merged.