Thank you for contributing to RMG-Py! Please take a moment to review our guidelines:
- Please open an Issue to the corresponding repository:
- RMG-Py: For functionality of the RMG and Arkane software packages
- RMG-database: For issues related to the data available to RMG
- RMG-website: For issues related to the RMG website
-
Open a new GitHub PR to merge into the main branch. Make sure the PR clearly describes the problem + solution. If applicable, include the relevant issue.
-
Your PR must pass unit tests, regression tests, and code coverage, and receive approval from at least one reviewer before it can be merged in.
-
If you wrote a new feature, please add unit tests. We currently use pytest for our unit testing.
-
If you wrote a significant new feature, please add a regression test:
-
First, please create an input file that includes your new feature. Ensure
saveEdgeSpecies
is set toTrue
so that the edge model will also be saved to a file. If applicable, include diverse sets of input conditions to test compatibility with other features. -
Generate the reaction mechanism corresponding to the input file. Ensure that the simulation does not take more than 15 minutes maximum. You can reduce simulation times in multiple ways, e.g. by increasing the
toleranceMoveToCore
flag. -
In the
test/regression
folder, create a new folder with a relevant name, and copy the RMG-Py simulation input file in this folder. Include this new folder in your PR. -
In
.github/workflows/CI.yml
, edit the two lists of regression tests in theRegression Tests - Execution
andRegression Tests - Compare to Baseline
steps to add the name of your folder. Be sure to follow BASH syntax. -
Warning: This will fail CI because of directory not found errors. This is because the baseline files used for comparison in the regression tests do not exist yet. Your PR will need to be merged by bypassing branch protection restrictions.
-
-
Documentation is hosted here using Sphinx.
-
The live version of the documentation is hosted on the
gh-pages
branch which is updated upon pushes to themain
branch of RMG-Py. -
To add new documentation, create or modify
.rst
(reStructuredText) files under thedocumentation
directory and create a PR to push tomain
. For a primer on how to write.rst
markup, please check out the Sphinx documentation. -
Please test the documentation on a local build (e.g., via
make html
in thedocumentation
directory) before pushing changes.
- Email us at [email protected].
-
Rebase to the main branch before working, to avoid merge conflicts.
-
Keep PRs small and aim to merge quickly.
-
Commits should be specific and as small as required; commit messages should be descriptive and as long as required. Commit messages should explain why the change is needed. We recommend following these guidelines.
-
Submit a PR only when the code is polished and ready for review. Consider opening a draft PR for work in progress that requires collaborator input.
-
Please follow the PEP8 Python style guide.
Thank you!
RMG Developers