Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for cmath #1511

Merged
merged 33 commits into from
Sep 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
708f290
Improve some docstrings
EmilyBourne Sep 14, 2023
3fb3b1e
Add tests for functions in math
EmilyBourne Sep 14, 2023
330a184
Add cmath functions
EmilyBourne Sep 14, 2023
119dcc6
Use complexes. Test polar
EmilyBourne Sep 14, 2023
4f0e199
Add all and types
EmilyBourne Sep 14, 2023
d2c99ae
Visit cmath polar
EmilyBourne Sep 14, 2023
deadb8f
Fix type
EmilyBourne Sep 14, 2023
af6acfa
Missing imports
EmilyBourne Sep 14, 2023
47fda2e
Neater printing
EmilyBourne Sep 14, 2023
c90e8ca
Add xfail for weird behaviour
EmilyBourne Sep 14, 2023
d108f21
Remove dead code. Add missing docstrings. Add CmathRect.__new__
EmilyBourne Sep 14, 2023
ced466b
Clean up assert syntax. Add rect test
EmilyBourne Sep 14, 2023
719a213
Add init for docstring
EmilyBourne Sep 14, 2023
4dcf5d3
Add visit function
EmilyBourne Sep 14, 2023
2eca239
Update docs
EmilyBourne Sep 14, 2023
6068063
Remove unnecessary types decorator
EmilyBourne Sep 14, 2023
b61c49e
[CODACY] Clean up imports
EmilyBourne Sep 14, 2023
7b359b8
Update CHANGELOG
EmilyBourne Sep 14, 2023
3b3f982
Improve docstrings
EmilyBourne Sep 14, 2023
7ca63e0
Unused variables
EmilyBourne Sep 14, 2023
7bb86f3
Sort __all__
EmilyBourne Sep 14, 2023
76f0131
Missing import
EmilyBourne Sep 14, 2023
73da325
Add missing function
EmilyBourne Sep 14, 2023
628b643
Improve coverage
EmilyBourne Sep 14, 2023
b99477e
Move handling to parser to insert imports
EmilyBourne Sep 14, 2023
8b8f6c8
Add necessary skip. Improve argument choice
EmilyBourne Sep 14, 2023
7360d66
Remove obsolete bot command
EmilyBourne Sep 14, 2023
7b5335e
Unused imports
EmilyBourne Sep 14, 2023
7f6c77b
Adapt tolerance to machine (lower tolerance on windows)
EmilyBourne Sep 14, 2023
20015a4
Deactivate failing nonsense
EmilyBourne Sep 14, 2023
f025067
Clean up spacing
EmilyBourne Sep 15, 2023
eade0f4
Remove unnecessary spaces
EmilyBourne Sep 15, 2023
45df9ae
Use is not
EmilyBourne Sep 15, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
- #1476 : Add C support for a class containing `Interfaces`.
- #1472 : Add C printing support for a class containing scalar data.
- #1492 : Types of arguments for class methods can be declared like function arguments.
- #1511 : Add support for the `cmath` library.

### Fixed

Expand Down
1 change: 0 additions & 1 deletion ci_tools/bot_messages/bot_commands.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ This bot reacts to all comments which begin with `/bot`. This phrase can be foll
- `mark as ready` : Runs the PR tests. If they pass then it adds the appropriate review flag and requests reviews. This command should be used when the PR is first ready for review, or when a review has been answered.
- `commands` : Shows this list detailing all the commands which are understood.
- `trust user X` : Tells the bot that a new user X is trusted to run workflows (prevents misuse of GitHub actions for mining etc). This command can only be used by a trusted reviewer.
- `accept coverage` : Tells the bot that the coverage errors have been investigated and cannot be fixed in this PR.
yguclu marked this conversation as resolved.
Show resolved Hide resolved

Beware: if you have never contributed to this repository and you are not a member of the Pyccel organisation, the bot will ignore all requests to run tests until permitted by a trusted reviewer.
15 changes: 15 additions & 0 deletions docs/supported-libraries.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Supported Libraries

Pyccel supports a limited subset of the libraries available in Python.

Currently we fully support:
- `math`
- `cmath`

We additionally have support for the specified functions from the following libraries:
- `itertools` : `product`
- `numpy` : See [NumPy functions](./numpy-functions.md).
- `scipy` : `constants.pi`
- `sys` : `exit`

If you need support for a library which is not mentioned here, please open a [discussion](https://github.com/pyccel/pyccel/discussions/categories/ideas) and we will investigate whether this can be added simply.