New feautures

If you have an idea for new feature, you can submit a feature idea through the issues page of the repository. After choosing new issue, please choose the template for feature request. As much as information as you can provide about the new feauture would be greatly helpful. Additionally, you could also work on feature requests already on the issues page. The following instructions will help you get started with local feature development.

Setting up local environment

  1. The first step is to fork pyscal. A detailed tutorial on forking can be found here. After forking, clone the repository to your local machine.
  2. We recommend creating a virtual environment to test new features or improvements to features. See this link for help on managing environments.
  3. Once the environment is set up, you can create a new branch for your feature by git checkout -b new_feauture.
  4. Now implement the necessary feature.
  5. Once done, you can reinstall pyscal by python install. After that please make sure that the existing tests work by running pytest tests/ from the main module folder.
  6. If the tests work, you are almost done! If the new feature is not covered in existing tests, you can to write a new test in the tests folder. pyscal uses pytest for tests. This link will help you get started.
  7. Add the necessary docstrings for the new functions implemented. pyscal uses the numpy docstring format for documentation.
  8. Bonus task: Set up few examples that document how the feature works in the docs/source/ folder and link it to the examples section.
  9. Final step - Submit a pull request through github. Before you submit, please make sure that the new feature is documented and has tests. Once the request is submitted, automated tests would be done. Your pull request will fail the tests if - the unit tests fail, or if the test coverage falls below 80%. If all tests are successful, your feauture will be incorporated to pyscal and your contributions will be credited.

If you have trouble with any of the steps, or you need help, please send an email and we will be happy to help! All of the contributions are greatly appreciated and will be credited in Developers/Acknowledgements page.