Thank you for taking the time to contribute!
The following is a set of guidelines for contributing to CoolProp and its submodules, which are hosted at CoolProp on GitHub. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
I don't want to read this whole thing, I just have a question!!!
Note: Please don't file an issue to ask a question. You'll get faster results by using the resources below.
We have an official Google Group, where the community chimes in with helpful advice if you have questions, and a fairly detailed set of on-line documentation.
- Discuss, the official CoolProp User Group
- CoolProp documentation: Release Version and Development Version
This section guides you through submitting a bug report for CoolProp. Following these guidelines helps maintainers and the community understand your report, reproduce the behavior, and find related reports.
Before creating bug reports, please check this list as you might find out that you don't need to create one. When you are creating a bug report, please include as many details as possible. Fill out the required template, the information it asks for helps us resolve issues faster.
Note: If you find a Closed issue that seems like it is the same thing that you're experiencing, and you are using the latest CoolProp version that includes that issue resolution, open a new issue and include a link to the original issue in the body of your new one.
- Check the FAQs file for a list of common questions and problems.
- Check the release and development CoolProp documentation.
- Perform a cursory search to see if the problem has already been reported. If it has and the issue is still open, add a comment to the existing issue instead of opening a new one.
Issues are tracked as GitHub issues. After you've determined the need to report an issue, create an issue on the CoolProp repository and provide the following information by filling in the template.
Explain the problem and include additional details to help maintainers reproduce the problem:
- Use a clear and descriptive title for the issue to identify the problem.
- Describe the exact steps which reproduce the problem in as many details as possible. For example, start by explaining how you started CoolProp, e.g. which command exactly you used in the terminal, or how you started CoolProp otherwise. When listing steps, don't just say what you did, but explain how you did it.
- Provide specific examples to demonstrate the steps. Include links to files or GitHub projects, or copy/pasteable snippets, which you use in those examples. If you're providing snippets in the issue, use Markdown code blocks.
- Describe the behavior you observed after following the steps and point out what exactly is the problem with that behavior.
- Explain which behavior you expected to see instead and why.
- Include screenshots and code segments which show you following the described steps and clearly demonstrate the problem.
- If you're reporting that CoolProp crashed, include the error message with a stack trace from the operating system.
Provide more context by answering these questions:
- Did the problem start happening recently (e.g. after updating to a new version of CoolProp) or was this always a problem?
- If the problem started happening recently, can you reproduce the problem in an older version of CoolProp or on a different OS? What's the most recent version in which the problem doesn't happen?
- Can you reliably reproduce the issue? If not, provide details about how often the problem happens and under which conditions it normally happens.
- If the problem is related to working with a specific fluid, does the problem happen for all fluids or only some?
Include details about your configuration and environment:
- Which version of CoolProp are you using? You can get the exact version in Python by printing CoolProp.version or by calling get_global_param_string("version") in most interfaces.
- What's the name and version of the OS you're using?
- **Which interface or CoolProp wrapper are you using (e.g. direct C++ calls, Python, Excel, Mathcad, etc.)
- If using Python, which version (e.g. 2.7, 3.6, etc.)
This section guides you through submitting an enhancement suggestion for CoolProp, including completely new features and minor improvements to existing functionality. Following these guidelines helps maintainers and the community understand your suggestion and find related suggestions.
Before creating enhancement suggestions, please check this list as you might find out that you don't need to create one. When you are creating an enhancement suggestion, please include as many details as possible. Fill in the template, including the steps that you imagine you would take if the feature you're requesting existed.
- Check the development documentation — you might discover that the enhancement is already available or planned for the next official release. Most importantly, check if you're using the latest version of CoolProp and if you can get the desired behavior by updating CoolProp.
- Perform a cursory search to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
Enhancement suggestions are tracked as GitHub issues. Create an issue on that repository and provide the following information:
- Use a clear and descriptive title for the issue to identify the suggestion.
- Provide a step-by-step description of the suggested enhancement in as many details as possible.
- Provide specific examples to demonstrate the steps. Include copy/pasteable snippets which you use in those examples, as Markdown code blocks.
- Describe the current behavior and explain which behavior you expected to see instead and why.
- Include screenshots and animated GIFs which help you demonstrate the steps or point out the part of CoolProp which the suggestion is related to.
- Explain why this enhancement would be useful to most CoolProp users.
- Specify which version of CoolProp you're using.
- Specify the name and version of the OS you're using.
Unsure where to begin contributing to CoolProp? You can start by looking through these beginner
and help-wanted
issues:
- Beginner issues - issues which should only require a few lines of code, and a test or two.
- Help wanted issues - issues which should be a bit more involved than
beginner
issues.
Both issue lists are sorted by total number of comments. While not perfect, number of comments is a reasonable proxy for impact a given change will have.
CoolProp can be developed locally on your machine. Once code changes are completed and tested, make a Pull Request (PR) to the CoolProp repository. Please see the Wiki on contributing to CoolProp.
- Fill in the required template
- Do not include issue numbers in the PR title
- Include screenshots in your pull request whenever possible.
- Follow the C++ Coding Guidelines.
- Document new code based on the Documentation Styleguide
- Avoid platform-dependent code
- Use the present tense ("Add feature" not "Added feature")
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
- Limit the first line to 72 characters or less
- Reference issues and pull requests liberally after the first line
- When only changing documentation (i.e. no actual code), include
[ci skip]
in the commit title