Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from setuptools import setup, find_packages

setup(name="inflammation-analysis", version="1.0", packages=find_packages())
12 changes: 12 additions & 0 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,15 @@ def test_daily_mean_integers():
# Need to use Numpy testing functions to compare arrays
npt.assert_array_equal(daily_mean(test_input), test_result)


def test_daily_min_integers():
""" Test that min function words for an array of positive intgers"""
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This docstring is too short!

from inflammation.models import daily_min

test_input = np.array([[1, 2],
[3, 4],
[5, 6]])
test_result = np.array([1, 2])

# Need to use Numpy testing functions to compare arrays
npt.assert_array_equal(daily_min(test_input), test_result)