Skip to content

Commit

Permalink
Merge pull request #10 from ArtesiaWater/dev
Browse files Browse the repository at this point in the history
Update to 0.4.1
  • Loading branch information
dbrakenhoff authored Jul 17, 2024
2 parents 619b829 + f6a6649 commit 3dea557
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,14 @@ ci = [
"pytest-dependency",
"codacy-coverage",
]
docs = ["sphinx_rtd_theme", "Ipython", "ipykernel", "nbsphinx", "nbsphinx_link"]
docs = [
"traval[ci]",
"sphinx_rtd_theme",
"Ipython",
"ipykernel",
"nbsphinx",
"nbsphinx_link",
]

[tool.setuptools]
packages = ["traval"]
Expand Down
4 changes: 2 additions & 2 deletions traval/rulelib.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ def rule_max_gradient(series, max_step=0.5, max_timestep="1D"):
return mask_corrections_as_nan(series, mask)


def rule_hardmax(series, threshold, offset):
def rule_hardmax(series, threshold, offset=0.0):
"""Detection rule, flag values greater than threshold value."""
return rule_ufunc_threshold(series, (np.greater,), threshold, offset=offset)


def rule_hardmin(series, threshold, offset):
def rule_hardmin(series, threshold, offset=0.0):
"""Detection rule, flag values lower than threshold value."""
return rule_ufunc_threshold(series, (np.less,), threshold, offset=offset)

Expand Down
2 changes: 1 addition & 1 deletion traval/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.0"
__version__ = "0.4.1"

0 comments on commit 3dea557

Please sign in to comment.