Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 3.03 KB

CONTRIBUTING.md

File metadata and controls

59 lines (42 loc) · 3.03 KB

User experiences, bugs, and feature requests

If you are using sbi to infer the parameters of a simulator, we would be delighted to know how it worked for you. If it didn't work according to plan, please open up an issue and tell us more about your use case: the dimensionality of the input parameters and of the output, as well as the setup you used to run inference (i.e. number of simulations, number of rounds,...).

To report bugs and suggest features (including better documentation), please equally head over to issues on GitHub.

Code contributions

Contributions to the sbi package are welcome! In general, we use pull requests to make changes to sbi. So, if you are planning to make a contribution, please fork, create a feature branch and then make a PR from your feature branch to the upstream sbi (details). To give credits to contributors, we consider adding contributors who repeatedly and substantially contributed to sbi to the list of authors of the package at the end of every year. Additionally, we mention all contributors in the releases.

Development environment

Clone the repo and install all the dependencies using the environment.yml file to create a conda environment: conda env create -f environment.yml. If you already have an sbi environment and want to refresh dependencies, just run conda env update -f environment.yml --prune.

Alternatively, you can install via setup.py using pip install -e ".[dev]" (the dev flag installs development and testing dependencies).

Style conventions

For docstrings and comments, we use Google Style.

Code needs to pass through the following tools, which are installed alongside sbi:

black: Automatic code formatting for Python. You can run black manually from the console using black . in the top directory of the repository, which will format all files.

isort: Used to consistently order imports. You can run isort manually from the console using isort in the top directory.

pyright: Used for static type checking.

black and isort and pyright are checked as part of our CI actions. If these checks fail please make sure you have installed the latest versions for each of them and run them locally.

Online documentation

Most of the documentation is written in markdown (basic markdown guide).

You can directly fix mistakes and suggest clearer formulations in markdown files simply by initiating a PR on through GitHub. Click on documentation file and look for the little pencil at top right.