We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Problem: gs.vario_estimate could alter the input field, when given as a numpy array with floats along with a trend function:
gs.vario_estimate
import numpy as np import gstools as gs trend = lambda a, b: a x = y = t = np.array([1.0, 2.0, 3.0, 4.0]) gs.vario_estimate((x, y), t, trend=trend) print(t)
results in
[0. 0. 0. 0.]
Although it should be [1. 2. 3. 4.]
[1. 2. 3. 4.]
To solve this, we need to set copy=True here:
copy=True
GSTools/gstools/variogram/variogram.py
Line 246 in f91d3b1
The text was updated successfully, but these errors were encountered:
MuellerSeb
Successfully merging a pull request may close this issue.
Problem:
gs.vario_estimate
could alter the input field, when given as a numpy array with floats along with a trend function:results in
Although it should be
[1. 2. 3. 4.]
To solve this, we need to set
copy=True
here:GSTools/gstools/variogram/variogram.py
Line 246 in f91d3b1
The text was updated successfully, but these errors were encountered: