Thanks for your interest in contributing to this repository!
This repository contains a framework to define, train, run, and evaluate machine learning models for LArTPC data. Goals are to
- Provide the basic framework needed for I/O, batching, and parallelization for models
- Make it easy to try out new models
- Make it easy to customize different parts of a LArTPC reconstruction pipeline
- Code should definitely run with Python 3. Please include imports to make your code Python 2 compatible.
- Please use the appropriate directories
Obviously, you should test your code. Ideally, we would have a unit testing framework that would make it easy for you to prove to others that you at least didn't break something.
Use the command CUDA_VISBLE_DEVICES='' pytest -rxXs
to run all the tests that are currently available (still work in progress).
If you are contributing code, please remember that other people use this repository as well, and that they may want (or need) to understand how to use what you have done. You may also need to understand what you do today 6 months from now. This means that documentation is important. There are three steps to making sure that others (and future you) can easily use and understand your code.
- Write a docstring for every function you write, no matter how simple.
- Comment your code. If you're writing more than a few lines in a function, a docstring will not suffice. Let any reader know what you're doing, especially when you get to a loop or if statement.
- If appropriate, update a README with your contribution.
We use the numpy style for docstrings. Several example docstrings can be viewed here.