-
Notifications
You must be signed in to change notification settings - Fork 74
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
Bugfix 1.2.1 #75
Bugfix 1.2.1 #75
Conversation
Back to work after 1.2.0
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.
Your good to go
@@ -325,6 +333,9 @@ def correlation(self, r): | |||
r = np.array(np.abs(r), dtype=np.double) | |||
return np.exp(-np.power(r / self.len_scale, self.alpha)) | |||
|
|||
def calc_integral_scale(self): # noqa: D102 | |||
return self.len_scale * sps.gamma(1.0 + 1.0 / self.alpha) |
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.
:-) That looks a lot faster
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.
It is!!
@@ -77,7 +77,7 @@ cdef inline void normalization_cressie( | |||
if counts[i] == 0: | |||
counts[i] = 1 | |||
variogram[i] = ( | |||
(1./counts[i] * variogram[i])**4 / | |||
0.5 * (1./counts[i] * variogram[i])**4 / |
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.
Thanks for that!
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.
Approved!
@LSchueler should we as well change these lines to use GSTools/gstools/field/summator.pyx Line 213 in a01da8e
GSTools/gstools/field/summator.pyx Line 248 in a01da8e
to get rid of the openmp bug on windows and macOS? |
ModuleNotFoundError
not present in py35.prange
fromIncomprRandMeth
summators to prevent errors on Win and macOS