-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
possiblility to pass kwargs to distance function #188
possiblility to pass kwargs to distance function #188
Conversation
Hi there, Thanks again, best |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah look good, thanks!
I'll turn this into a PR and run the tests on it.
@mmaelicke thank you, it is sufficient. I see metricspace.py is still formatted right. I used black formatter |
I get failing unittests locally, I try to change the CI to run on PRs of forks, which it does currently not do. |
I am not sure, why I can't update this PR to the changes on the main branch. Can you pull the them into your branch manually? Or run the unittests locally? there is a requirements.unittest.3.10.txt for additional test dependencies. The pytest output is too long to paste it into here and I am not really sure what is going wrong. The main branch is not failling. It is always the same error, as far as I can tell:
I guess the |
@mmaelicke I forgot to add a comma I see. I've tested locally and it runs fine. P.S. I do however see some improvements, but should be another PR. The way distance functions are now not really propagated from metricspace to variogram to kriging is a bit confusing IMHO. I would have rather set it only on metricspace and also only allow it as input to variogram and kriging. |
Works for me too, thanks! Of course, after testing locally, the Actions picked up the changed CI and the tests ran here as well.... Thanks for your contribution, I will now merge |
just released as |
In current version it is not possible to pass kwargs if you have a function for the distances. Therefore, added the option to add kwargs.