Add Functions¶
Where¶
Create or update a module under particula//.
Checklist¶
- Python – no I/O or global state changes.
- Follow Code Specifications for formatting.
- Input validation via util.validate_inputs when applicable.
- Logging: use
logger = logging.getLogger("particula")and log at DEBUG.
Steps¶
- Create a new issue on GitHub and assign it to yourself.
- Create a branch on your forked repo for this issue.
- Add a new function(s) to the appropriate module in particula//.
- Add a package
__init__.pyexport only when the function is an approved public API. Concrete, staged, or internal-module contracts may deliberately remain unexported. - If the function is a helper, add prefix
_to the function name. - Write a docstring.
- Add type hints for all parameters and return values.
- Add Unit Tests for the function (see Add Unit Tests).
- Commit this file in a branch.
- Create your pull‑request to the main repo.