โค๏ธ Contributingยถ
Contributions are welcome and greatly appreciated!
The best way to get in touch with the core developers and maintainers is to join the PyLops slack channel as well as open new Issues directly from the GitHub repo.
Welcomed contributionsยถ
Bug reportsยถ
Report bugs at https://github.com/PyLops/pylops/issues.
If you are playing with the PyLops library and find a bug, please report it including:
Your operating system name and version.
Any details about your Python environment.
Detailed steps to reproduce the bug.
New operators and featuresยถ
Open an issue at https://github.com/PyLops/pylops/issues with tag enhancement.
If you are proposing a new operator or a new feature:
Explain in detail how it should work.
Keep the scope as narrow as possible, to make it easier to implement.
Fix issuesยถ
There is always a backlog of issues that need to be dealt with. Look through the GitHub Issues for operator/feature requests or bugfixes.
Add examples or improve documentationยถ
Writing new operators is not the only way to get involved and contribute. Create examples with existing operators as well as improving the documentation of existing operators is as important as making new operators and very much encouraged.
Step-by-step instructions for contributingยถ
Ready to contribute?
Follow all instructions in Step-by-step installation for developers.
Create a branch for local development, usually starting from the dev branch:
>> git checkout -b name-of-your-branch dev
Now you can make your changes locally.
3. When youโre done making changes, check that your code follows the guidelines for ๐๏ธ Implementing new operators or ๐ฅ Implementing new solvers and that both old and new tests pass successfully:
>> make tests
If you have access to a GPU, it is advised also that old and new tests run with the CuPy backend pass successfully:
>> make tests_gpu
Run flake8 to check the quality of your code:
>> make lint
Note that PyLops does not enforce full compliance with flake8, rather this is used as a guideline and will also be run as part of our CI. Make sure to limit to a minimum flake8 warnings before making a PR.
Update the docs
>> make docupdate
Commit your changes and push your branch to GitHub:
>> git add .
>> git commit -m "Your detailed description of your changes."
>> git push origin name-of-your-branch
Remember to add -u when pushing the branch for the first time.
We recommend using Conventional Commits to
format your commit messages, but this is not enforced.
Submit a pull request through the GitHub website.
Pull Request Guidelinesยถ
Before you submit a pull request, check that it meets these guidelines:
The pull request should include new tests for all the core routines that have been developed.
If the pull request adds functionality, the docs should be updated accordingly.
Ensure that the updated code passes all tests.
Project structureยถ
This repository is organized as follows:
pylops: Python library containing various linear operators and auxiliary routines
pytests: set of pytests
testdata: sample datasets used in pytests and documentation
docs: Sphinx documentation
examples: set of python script examples for each linear operator to be embedded in documentation using sphinx-gallery
tutorials: set of python script tutorials to be embedded in documentation using sphinx-gallery