Skip to content

Commit

Permalink
warning on negative slope
Browse files Browse the repository at this point in the history
  • Loading branch information
janekg89 committed Jun 20, 2022
1 parent b475c67 commit b9c0d25
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions backend/pkdb_app/info_nodes/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ def sid(self):
def name(self):
return self.info_node.name

def __str__(self):
return self.info_node.name


class Tissue(AbstractInfoNode):
""" Tissue Model """
Expand Down Expand Up @@ -466,8 +469,6 @@ class Substance(AbstractInfoNode):
charge = models.FloatField(null=True)
formula = models.CharField(null=True, max_length=CHAR_MAX_LENGTH) # chemical formula

def __str__(self):
return self.info_node.name

@property
def derived(self):
Expand Down
3 changes: 3 additions & 0 deletions backend/pkdb_app/interventions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ class Intervention(Accessible, Normalizable, AbstractIntervention):
form = models.ForeignKey(Form, on_delete=models.CASCADE, null=True)
study = models.ForeignKey('studies.Study', on_delete=models.CASCADE, related_name="interventions")

def __str__(self):
return self.name

@property
def raw_pk(self):
if self.raw:
Expand Down
2 changes: 1 addition & 1 deletion backend/pkdb_app/outputs/pk_calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def _timecourse_to_pkdict(tc: dict, dosing) -> Dict:
# time
pk_dict["time"] = Q_(np.array(tc["time"]), tc["time_unit"])

# concentratio
# concentration
values = None
ctype = None
if tc["mean"]:
Expand Down

0 comments on commit b9c0d25

Please sign in to comment.