Skip to content

Commit

Permalink
Merge pull request #9 from abbyevewilliams/model_test
Browse files Browse the repository at this point in the history
updated model_test.py for new model class
  • Loading branch information
creed130 authored Oct 23, 2024
2 parents f6c7e24 + d4ce4f3 commit 4efb948
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
13 changes: 6 additions & 7 deletions pkmodel/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#

class Model:

"""A Pharmokinetic (PK) model
Parameters
Expand All @@ -19,11 +18,11 @@ class Model:
"""
def __init__(self,
name,
Q_p1 = 1,
V_c = 1,
V_p1 = 1,
CL = 1,
X = 1):
Q_p1=1,
V_c=1,
V_p1=1,
CL=1,
X=1):
self.name = name
self.Q_p1 = Q_p1
self.V_c = V_c
Expand All @@ -32,4 +31,4 @@ def __init__(self,
self.X = X

def __str__(self):
return "model named " + self.name
return "model named " + self.name
5 changes: 2 additions & 3 deletions pkmodel/tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ def test_create(self):
"""
Tests Model creation.
"""
model = pk.Model()
self.assertEqual(model.value, 42)

model = pk.Model(name="testing")
self.assertEqual(model.name, "testing")

0 comments on commit 4efb948

Please sign in to comment.