-
-
Notifications
You must be signed in to change notification settings - Fork 359
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 Python code to Monte Carlo Integration #294
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello and welcome to the project! Thank you very much for the contribution.
I can't review the entire thing right now, but there is one thing you will definitely have to change.
from math import pi | ||
|
||
|
||
def inCircle(xPos, yPos): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functions and variables are usually named using snake_case rather than camelCase in Python. For example,. this line should rather be:
def in_circle(x_pos, y_pos):
This goes for everything in this file.
I totally forgot this, but we currently have multiple Python Monte Carlo pull requests. I can't guarantee that your code will actually be used because other people were faster than you. I'll ask @jiegillet about the situation as soon as he's back since he's handling the situation as far as I know. |
Hi @hybrideagle, thanks for you contribution. #184 is ahead of you. Feel free to look at my review of that code and change your code accordingly if you wish, but I will only accept your code if that other PR goes dead. That has happened 2 or 3 times before for monte carlo in Python, somehow this combination is cursed. |
This is the weirdest algorithm to have this kind of churn. |
I think you can close it. We are close to resolution with the other PR. |
No description provided.