Developer’s Guide#
The PyTomography team highly encourages contributions from the community…in fact, contributions from the imaging community are essential for creating the best possible library! If you wish to make a contribution, please use the following checklist:
Create an issue on the PyTomography Github Issues page. Describe what it is you intend to implement/fix.
Once you create the issue, create a corresponding branch for the issue (you should be able to do so on your issue page under “Development” on the right hand side)
On your local computer, clone the github repository, Then use the commands
git fetch origin
followed bygit checkout <branchname>
where<branchname>
is replaced by the corresponding name of the branch on GitHub.Make any changes corresponding to the issue you created. If these changes modify essential functionality, please be sure to test them before proceeding.
Once the changes are made, use
git add --all
followed bygit commit -m <message>
where<message>
is replaced by a present tense statement about the changes you made. For example, if you changed the name of a function fromdo_this()
todo_that()
, the message would be something along the lines ofrename do_this() to do_that()
. Then usegit push
to push the changes from your branch to GitHub.Create a pull request for your changes. Do this by going to the pull request page and choosing “New Pull Request”. This is important: make sure you request to merge from your branch to the development branch. This means that the “head ref” (right hand side) should be your branch, and the “base ref” (left hand side) should be the development branch.
Someone at the PyTomography team will then review the changes and be in contact via comments on the GitHub page. If the changes are accepted, they’ll be merged into the development branch, and then eventually included in the next release of PyTomography!