Skip to content

Commit

Permalink
fix where to detrend (#101)
Browse files Browse the repository at this point in the history
Co-authored-by: J.R. Angevaare <joran.angevaare@gmail.com>
  • Loading branch information
JoranAngevaare and J.R. Angevaare committed Jul 31, 2023
1 parent ab126ce commit cf6d957
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optim_esm_tools/analyze/time_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def get_values_from_data_set(ds, field, add='_detrend'):
def calculate_dip_test(ds, field=None):
import diptest

values = get_values_from_data_set(ds, field)
values = get_values_from_data_set(ds, field, add='')

_, pval = diptest.diptest(values, boot_pval=False)
return pval
Expand All @@ -98,7 +98,7 @@ def calculate_dip_test(ds, field=None):
def calculate_skewtest(ds, field=None):
import scipy

values = get_values_from_data_set(ds, field, add='')
values = get_values_from_data_set(ds, field)
if sum(~np.isnan(values)) < 8:
# At least 8 samples are needed
oet.config.get_logger().error('Dataset too short for skewtest')
Expand Down

0 comments on commit cf6d957

Please sign in to comment.