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
If a centroid and last_centroid are [0, 0, 0] and [10, 10, 10], then centroid - last_centroid is [-10, -10, -10] with a mean of -10, which is certainly less than 0.00001.
If a centroid and last_centroid are [0, 0, 0] and [10, 0, -10], then centroid - last_centroid is [-10, 0, 10] with a mean of 0, which is also less than 0.00001.
It doesn't seem like that fits the definition of convergence.
@kwalcock you're right! I think I threw this function together quite quickly so pretty sure I didn't have a reason to skip abs other than making a mistake. Thanks!
There may be an absolute value or two missing in
grid/habitus_ui_interface-main/backend/mathematician.py
Lines 287 to 294 in 8670a1e
If a centroid and last_centroid are [0, 0, 0] and [10, 10, 10], then centroid - last_centroid is [-10, -10, -10] with a mean of -10, which is certainly less than 0.00001.
If a centroid and last_centroid are [0, 0, 0] and [10, 0, -10], then centroid - last_centroid is [-10, 0, 10] with a mean of 0, which is also less than 0.00001.
It doesn't seem like that fits the definition of convergence.
The code may have to be
for the first issue or even
to take care of them both.
The text was updated successfully, but these errors were encountered: