Skip to content
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

Bug in MetricSpace #101

Open
mmaelicke opened this issue May 19, 2021 · 0 comments
Open

Bug in MetricSpace #101

mmaelicke opened this issue May 19, 2021 · 0 comments
Assignees
Labels

Comments

@mmaelicke
Copy link
Owner

Hey @redhog

I think there is still a bug in MetricSpace related to the setting of maxlag. You can reproduce the example below with the newly introduced data module of scikit-gstat:

import skgstat as skg
c, v = skg.data.pancake().get('sample')

V = skg.Variogram(c, v, n_lags=20)
V.plot()

gives:
image

If you build the variogram like:

V = skg.Variogram(c, v, n_lags=20, maxlag=500)

we get:
image

I guess the problem is the MetricSpace as it gets instantiated differently when maxlag is not an integer > 1. If I pass a float < 1 things seem to work properly:

image

Something that could be related:
I fixed an issue here:

if samples is None:

Formerly, this line looked like:

if maxlag == None:

For which pylint was always complaining cause it's bad practice.

I can somehow remember that you fixed a similar issue already, so maybe you know what is going wrong here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants