Commit d0747237 authored by Klaus Zimmermann's avatar Klaus Zimmermann
Browse files

Fix: Rename percentile_occurrence index function (fixes #202)

parent 54a8c996
......@@ -16,7 +16,7 @@ from .index_functions import ( # noqa: F401
)
from .percentile_functions import ( # noqa: F401
PercentileOccurrence,
CountPercentileOccurrences,
)
from .spell_functions import ( # noqa: F401
......
......@@ -111,7 +111,7 @@ def build_indices(time, max_doy, no_years, window_size):
return np_indices
class PercentileOccurrence(IndexFunction):
class CountPercentileOccurrences(IndexFunction):
def __init__(self, percentile, condition,
reference_period="1961-1991",
bootstrapping=True):
......
......@@ -69,8 +69,8 @@ setuptools.setup(
'climix.index_functions:LastOccurrence',
'percentile='
'climix.index_functions:Percentile',
'percentile_occurrence='
'climix.index_functions:PercentileOccurrence',
'count_percentile_occurrences='
'climix.index_functions:CountPercentileOccurrences',
'spell_length='
'climix.index_functions:SpellLength',
'statistics='
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment