When it comes to planning in the built environment, we think transparency is critical. The shape and operations of our shared infrastructure and public spaces impacts individuals’ access to employment opportunities, education, social communities, clean air, and safe mobility options.
We think open source, agent based models are the future for better city and national planning. To help us work with our ABM engine of choice (MATSim) we built Elara. Elara is our tool for extracting useful outputs from simulation records.
Thank you for considering contributing to Elara! We're really excited to hear your opinions on the project and any ideas you may have on how it can be better!
Please note we have a code of conduct. Please follow it in all your interactions with the project.
There are a number of ways you can contribute to the project. The major two are:
- Submitting a GitHub issue. This could involve:
- Logging a bug or undesirable behaviour
- Recording area of possible improvement
- Requesting a change or addition of a new feature
- Contributing code. Our work is never done, if you have an idea how you could make Elara better or if you think you could generalise it:
- You can outline the new feature or desired behaviour in a GitHub issue.
- We are particularly keen to support more and better standard outputs. We are trying to maintain templates for common additions.
- Please follow advice below on Contributing Code, working in a branch and the Pull Request process.
- You may continue to, and are encouraged to, keep in touch and reach out to us throughout your development work.
See this helpful site on How to Contribute to Open Source for more ideas on how you could contribute. Get in touch with us via email [email protected].
If you have an idea for an enhancement, a change or addition of new feature or behaviour for Elara, or a record of a bug, please raise an Issue. You can also contact is at [email protected].
A good issue will outline the problem in a full written format. It is helpful to include screenshots, especially to highlight any physical issues with the network. It is also helpful to include why you think the new feature would be useful, what problem is it solving and whether there is a real-world cases study that would benefit from this improvement.
In case of bugs, please provide the full error message, the OS and information about the environment in which the process had been run. It is also helpful to include a small (if possible) set of data on which the problem can be recreated - or at the very least, a thorough description of the input data should be included.
In the case of feature requests, be as specific as possible regarding the purpose and need for the feature. When requesting a new handler, or proposing changes to an existing handler, please clearly explain what analytical problems the new functionality will solve and why it is important for your project. This helps us to prioritize development tasks and better maintain the code base in the long term.
- All new work is done in a branch taken from master, details can be found here: feature branch workflow
- Ensure your work is covered by unit tests to the required percentage level. This script
scripts/code-coverage.sh
will help both in checking that the coverage level is satisfied and investigating places in code that have not been covered by the tests (via an output filereports/coverage/index.html
which can be viewed in a browser). We strongly encourage writing/updating tests for new code. - Provide docstrings for new methods.
- Perform linting locally using
flake8 . --max-line-length 120 --count --show-source --statistics --exclude=scripts,tests
- Add or update dependencies in
requirements.txt
if applicable. - Ensure the CI build pipeline (Actions tab in GitHub) completes successfully for your branch. The pipeline performs automated
PEP8
checks and runs unit tests in a fresh environment, as well as installation of all dependencies. - You may use example configs in
example_configs
or data already intests.test_fixtures
directory of this repo, or add more (small amount of) data to it to show off your new features. - Add section in the
README.md
which shows usage of your new feature. - Submit your Pull Request (see GitHub Docs on Creating a Pull Request), describing the feature, linking to any relevant GitHub issues and request review from at least two developers. (Please take a look at latest commits to find out which developers you should request review from).
- You may merge the Pull Request in once you have the sign-off of two other developers, or if you do not have permission to do that, please request one of the reviewers to merge it for you.
The Contribution Guide was adapted from PurpleBooth's Template.