-
Notifications
You must be signed in to change notification settings - Fork 47
Home
Daniel Côté edited this page Jul 20, 2022
·
28 revisions
- Before anything, read the project README to get started and understand what this Python module is all about and what ray tracing is.
- The list of things to do (called Issues) are here. If they are not assigned to anyone, you can take them by assigning them to you.
-
To get started on coding in general, read HOWTO-Code on GitHub.
- You can adopt any issue, as long as you own it properly: go through, fix it, call for help if needed.
- If you are part of the DCCLab, simply clone the repository with the link:
- If you are not a member of the group, you need to Fork the repository. You will be able to create a Pull Request that will be sent back to us when you are done:
- Always create a branch to work. Start from master or a sub-branch if you are working on a specific detail that has not been merged yet into master.
- Often
Fetch
in the GitHub application to get changes to get your branch up to date - Every day, click
Update from Master
in the GitHub application to pull important changes that were accepted major changes - Readability of the code is essential: docstring for each function, proper capitalization. Read HOWTO Coding Style Guide. Yes, we use
camelCase
. No, it is not negotiable. Yes, D.C.Côté knows it is not Python-like. - For proper testing, you must run from the
Raytracing
directory, so that when you call "import raytracing", it takes your own local copy, not another copy elsewhere on your computer. - Any changes where you fix a given function that does not work properly will probably be accepted quickly.
- Any changes where you propose a new algorithm will be reviewed carefully. Remember, speed is not the key design goal: readability and usability are.
- Any changes to the API (i.e. if you change a function name or the number of arguments) without backward compatibility is not accepted unless you provide strong (and good) arguments. We do no program only for us: people have been using the code for some time now.
- Proper capitalization is important. Function and variable names are very important.
- Create a Pull request when done. Assign reviewers: D.C. Côté + others if you want feedback from others.
- Only D.C. Côté can merge the pull requests.
- Upon review and merge, the branch will be deleted on the server.
- If the branch is deleted on the server, your copy of the branch on your computer will appear as "Publish to GitHub" in the GitHub Desktop application. You must delete it.
-
To get started on writing tests, read HOWTO Write Unit Tests
- We aim for 90% coverage with the tests.
- You find a bug? Create a test that illustrates it, then create an Issue. Then go to 2.