Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DominiqueMakowski committed Sep 7, 2018
1 parent 3061b3a commit bba8ed9
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
Binary file removed .DS_Store
Binary file not shown.
Binary file removed neurokit/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion neurokit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
neurokit module.
"""
__version__ = "0.2.6"
__version__ = "0.2.7"

from .miscellaneous import *
from .statistics import *
Expand Down
2 changes: 1 addition & 1 deletion neurokit/bio/bio_ecg_preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def ecg_wave_detector(ecg, rpeaks):
Example
----------
>>> import neurokit as nk
>>> ecg = nk.ecg_simulate(duration=3, sampling_rate=1000)
>>> ecg = nk.ecg_simulate(duration=5, sampling_rate=1000)
>>> ecg = nk.ecg_preprocess(ecg=ecg, sampling_rate=1000)
>>> rpeaks = ecg["ECG"]["R_Peaks"]
>>> ecg = ecg["df"]["ECG_Filtered"]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_normal_range(self):
#==============================================================================
def test_compute_dprime(self):
parameters = nk.compute_dprime(n_Hit=7, n_Miss=4, n_FA=6, n_CR=6)
self.assertEqual(np.round(parameters["bppd"], 2), -0.5)
self.assertEqual(np.round(parameters["bppd"], 2), -0.27)

def test_compute_BMI(self):
self.assertEqual(round(nk.compute_BMI(182, 70, 27, "m")['BMI_old'], 2), 21.13)
Expand Down

0 comments on commit bba8ed9

Please sign in to comment.