Closed Tolani4 closed 1 month ago
After submitting my pull requests I'm still receiving errors from github specifically pylint. Am I just supposed to apply the changes it recommends such as " C0301: Line too long (108/100) (line-too-long)"
After submitting my pull requests I'm still receiving errors from github specifically pylint. Am I just supposed to apply the changes it recommends such as " C0301: Line too long (108/100) (line-too-long)"
yes, since the reviewer will point it out and we want to write compliant code
Though your low score (1.3/10) most likely stems from more serious issues like:
Electric_potential_due_to_point_charge.py/Electric_potential.py:30:21: C3001: Lambda expression assigned to a variable. Define a function using the "def" keyword instead. (unnecessary-lambda-assignment)
which I discussed in class as we talked about lambda functions
Okay thank you. For the "missing module docstring" error. Do I just need to create a separate file called docstring and just explain my code and the physics behind it? and for the error "C0115: Missing class docstring (missing-class-docstring)", Do I just create a class called docstring in that file? Just trying to understand what the errors mean.
As we discussed in class docstring explanation can be found in the lecture slides in hands on examples and here:
@ojha-aditya Please review asap
Can I as reviewer resolve this notification about the branch being out-of-date or we simply mention it in the review as a todo?
Also, do we need to have a main function in the module?
Also, do we need to have a main function in the module?
no, since it’s a module
Can I as reviewer resolve this notification about the branch being out-of-date or we simply mention it in the review as a todo?
you an mention it
We should not mention the things you have already pointed in our review @laserlab should we?
We should not mention the things you have already pointed in our review @laserlab should we?
Please mention all you noticed, independent from what I comment.
Got it.
no fixes, not merging
This Pull Request implements a Python function to calculate the electric potential V at various distances due to a point charge. The calculation is based on Coulomb's Law and uses functional programming concepts, lambda functions, list comprehension, and map() function for implementation.