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

Mean, Geometric Mean & Harmonic mean Functions implemented in Statistics.py module #769

Merged
merged 4 commits into from
Jul 19, 2022

Conversation

Madhav2310
Copy link
Contributor

No description provided.

@Madhav2310
Copy link
Contributor Author

@certik @czgdp1807 @namannimmo10 please review

@@ -176,6 +176,7 @@ RUN(NAME test_max_min LABELS cpython llvm)
RUN(NAME test_integer_bitnot LABELS cpython llvm)
RUN(NAME test_unary_minus LABELS cpython llvm)
RUN(NAME test_unary_plus LABELS cpython llvm)
RUN(NAME test_statistics LABELS cpython)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not llvm?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

llvm tests weren't passing, I think it had something to do with list implementation in the backend

Copy link
Contributor Author

@Madhav2310 Madhav2310 Jul 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was getting the following error:

semantic error: Arguments do not match for any generic procedure, mean
  --> /home/madhav/lpython/integration_tests/test_statistics.py:11:9
   |
11 |     j = mean(b)
   |         ^^^^^^^ 


@certik
Copy link
Contributor

certik commented Jul 19, 2022

I think that this is fine.

Can you please isolate the bugs that prevent LPython to compile this, and report them as issues? Let's get them fixed.

@certik certik merged commit 27af0e1 into lcompilers:main Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants