You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seem to be some code duplication in getCoordinationNumberSpheres(). The code after scale= is the same for whichever scale is chosen. Additionally, cnsp is initialized and computed, but not used in the final result.
However, writing a common function supporting all the different cntypes could possibly obfuscate the implementation so it is up to you if you want to unify them.
Documentation
In the documentation I'd mention how the parameters k0, k1, k2, k3 are obtained. Could you also link the following bit of text (see Applications part) to the corresponding section?
Suggested TODOs
Remove unused cnsp calculation in getCoordinationNumberSpheres()
Merge duplicate code in getCoordinationNumberSpheres()
Mention how the parameters k0, k1, k2, k3 are obtained (in the documentation)
Link the text (see Applications part) to the corresponding section
for a long time, I was also not really happy with the name of the CNSP, as the definition is not really a sphere but rather a shell. So I have now updated the name of this feature to be "Proximity Shell" (Prox) and also added the possibility of user input via the size flag (default: 2->3). In the documentation, I have separated the CN and the Prox part accordingly. In addition, I have added how the parameters of the CN have been fitted and cleaned up some sections in the code.
getCoordinationNumberSpheres()
There seem to be some code duplication in
getCoordinationNumberSpheres()
. The code afterscale=
is the same for whichever scale is chosen. Additionally,cnsp
is initialized and computed, but not used in the final result.kallisto/src/kallisto/methods.py
Line 102 in 4e03cd5
I suggest to move the following code
kallisto/src/kallisto/methods.py
Lines 115 to 133 in 4e03cd5
and call it with
scale=2
andscale=3
. With such changes, the code will better reflect the definition of CNSP_i^(3,2) given in the documentation.getCoordinationNumbers()
There is some code duplication in
getCoordinationNumbers
kallisto/src/kallisto/methods.py
Lines 24 to 37 in 4e03cd5
However, writing a common function supporting all the different
cntype
s could possibly obfuscate the implementation so it is up to you if you want to unify them.Documentation
In the documentation I'd mention how the parameters
k0, k1, k2, k3
are obtained. Could you also link the following bit of text(see Applications part)
to the corresponding section?Suggested TODOs
cnsp
calculation ingetCoordinationNumberSpheres()
getCoordinationNumberSpheres()
k0, k1, k2, k3
are obtained (in the documentation)(see Applications part)
to the corresponding sectionJOSS Review
The text was updated successfully, but these errors were encountered: