Closed ns-rse closed 1 month ago
@ns-rse I have a rough idea what this piece of legacy code does but not how different things could be interchanged. I'd say leave this for now and get this adhering to the standards. And possibly make a new issue to swap these out and see if any tests are affected?
Looks good, just if you want to refactor the legacy code or make a new issue?
I've gone with somewhere in-between and addressed Part 1 as removing the unused parameters had no impact on the tests completing successfully and kicked the can done the road for Part 2 and written it up in #953
Resolves #920
This commit is a squash of seven individual commits that address Numpydoc validation
Removes unused functions/methods...
Renames methods to adhere to PEP8
Questions
check_vectors_candidate_points
- part 1This function (nee
checkVectorsCandidatePoints
) takes the parametersx
andy
but these are never used directly, ratherx
andy
are obtained anew in each iteration of this loop...We should be able to just drop
x
andy
as parameters to this method but I wanted to check as there aren't any tests for these methods/functions.check_vectors_candidate_points
- part 2I also noticed that in some places
check_vectors_candidate_points
(neecheckVectorsCandidatePoints
) was commented out (lines 83 and 187) in favour of usingfind_next_best_point
(neefindNextBestPoint
) butcheck_vectors_candidate_points
is still used in some places.find_next_best_point
replace all calls made tocheck_vectors_candidate_points
?