Skip to content

Commit

Permalink
Merge pull request #5 from KaveIO/outliers_fix
Browse files Browse the repository at this point in the history
Fix small typo in outliers poisson_obs_mid_z function
  • Loading branch information
mbaak authored Feb 29, 2020
2 parents 593629c + 4b0028c commit 3f51b85
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Phi_K Correlation Analyzer Library
==================================

* Version: 0.9.9. Released: Jan 2020
* Version: 0.9.10. Released: Feb 2020
* Documentation: https://phik.readthedocs.io
* Repository: https://github.com/kaveio/phik
* Publication: https://arxiv.org/abs/1811.11440
Expand Down
2 changes: 1 addition & 1 deletion python/phik/outliers.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def poisson_obs_z(nobs:int, nexp:float, nexperr:float) -> float:
Z = z_from_logp(logp)
if pvalue==1:
log1mp = tlogp[1]
Z = z_from_logp(logp, flip_sign = True)
Z = z_from_logp(log1mp, flip_sign = True)
# default:
else:
Z = -stats.norm.ppf(pvalue)
Expand Down
4 changes: 2 additions & 2 deletions python/phik/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""THIS FILE IS AUTO-GENERATED BY PHIK SETUP.PY."""

name = 'phik'
version = '0.9.9'
full_version = '0.9.9'
version = '0.9.10'
full_version = '0.9.10'
release = True
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

MAJOR = 0
REVISION = 9
PATCH = 9
PATCH = 10
DEV = False

# note: also update README.rst
Expand Down
2 changes: 2 additions & 0 deletions tests/phik_python/test_phik.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@

import unittest
import unittest.mock as mock
import pytest


@pytest.mark.filterwarnings("ignore:Using or importing the ABCs from")
class PhiKTest(unittest.TestCase):
"""Tests for calculation of Phi_K"""

Expand Down

0 comments on commit 3f51b85

Please sign in to comment.