Skip to content

Commit

Permalink
Fix for Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerkin committed Mar 9, 2018
1 parent 29e9f4e commit 90178ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sciunit/scores/complete.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
These include various representations of goodness-of-fit.
"""

from __future__ import division

import math

import quantities as pq
Expand Down Expand Up @@ -66,7 +68,7 @@ def compute(cls, observation, prediction):
p_value = prediction # Use the prediction (assume it is numeric).
o_mean = observation['mean']
o_std = observation['std']
value = float(p_value - o_mean)/o_std
value = (p_value - o_mean)/o_std
value = utils.assert_dimensionless(value)
return ZScore(value)

Expand Down

0 comments on commit 90178ea

Please sign in to comment.