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
Prior 1.3.0, KDtree.valid_metrics was an attribute returning a list. This was also mentioned in the docs as showed in #25364 (comment). In 1.3.0, however, #25482 added a new method KDtree.valid_metrics(), therefore checks like metric in KDtree.valid_metrics does not work anymore.
From the perspective of our downstream project, this is an unexpected change of behaviour. I don't think that there's anything we can do about it now but it is a bit unfortunate.
I wanted to open the issue to ensure the team is aware of it but given the situation I don't really expect a fix, unless you have some great idea how to resolve it.
This is unfortunate. @jjerphan do you think we could still expose this an attribute using a property instead of a method to restore backward compat in 1.3.1?
Describe the bug
Prior 1.3.0,
KDtree.valid_metrics
was an attribute returning a list. This was also mentioned in the docs as showed in#25364 (comment). In 1.3.0, however, #25482 added a new method
KDtree.valid_metrics()
, therefore checks likemetric in KDtree.valid_metrics
does not work anymore.From the perspective of our downstream project, this is an unexpected change of behaviour. I don't think that there's anything we can do about it now but it is a bit unfortunate.
I wanted to open the issue to ensure the team is aware of it but given the situation I don't really expect a fix, unless you have some great idea how to resolve it.
Steps/Code to Reproduce
Expected Results
We got a list directly before. Now, we have to use
KDTree.valid_metrics()
.Actual Results
<function KDTree.valid_metrics>
Versions
The text was updated successfully, but these errors were encountered: