Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Klaus Zimmermann
climix
Commits
d0747237
Commit
d0747237
authored
Oct 21, 2020
by
Klaus Zimmermann
Browse files
Fix: Rename percentile_occurrence index function (fixes
#202
)
parent
54a8c996
Changes
3
Hide whitespace changes
Inline
Side-by-side
climix/index_functions/__init__.py
View file @
d0747237
...
...
@@ -16,7 +16,7 @@ from .index_functions import ( # noqa: F401
)
from
.percentile_functions
import
(
# noqa: F401
PercentileOccurrence
,
Count
PercentileOccurrence
s
,
)
from
.spell_functions
import
(
# noqa: F401
...
...
climix/index_functions/percentile_functions.py
View file @
d0747237
...
...
@@ -111,7 +111,7 @@ def build_indices(time, max_doy, no_years, window_size):
return
np_indices
class
PercentileOccurrence
(
IndexFunction
):
class
Count
PercentileOccurrence
s
(
IndexFunction
):
def
__init__
(
self
,
percentile
,
condition
,
reference_period
=
"1961-1991"
,
bootstrapping
=
True
):
...
...
setup.py
View file @
d0747237
...
...
@@ -69,8 +69,8 @@ setuptools.setup(
'climix.index_functions:LastOccurrence'
,
'percentile='
'climix.index_functions:Percentile'
,
'percentile_occurrence='
'climix.index_functions:PercentileOccurrence'
,
'
count_
percentile_occurrence
s
='
'climix.index_functions:
Count
PercentileOccurrence
s
'
,
'spell_length='
'climix.index_functions:SpellLength'
,
'statistics='
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment