Skip to content

Commit

Permalink
CovModel: fix setting integral scale as list of values
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Aug 12, 2024
1 parent 01d1d82 commit 418038f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gstools/covmodel/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ def integral_scale(self, integral_scale):
old_scale = self.integral_scale
self.anis = anis
self.len_scale = self.len_scale * int_scale / old_scale
if not np.isclose(self.integral_scale, integral_scale, rtol=1e-3):
if not np.isclose(self.integral_scale, int_scale, rtol=1e-3):
raise ValueError(
f"{self.name}: Integral scale could not be set correctly! "
"Please just provide a 'len_scale'!"
Expand Down

0 comments on commit 418038f

Please sign in to comment.