Skip to content

Commit

Permalink
bug fix in str of distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew McCluskey committed Mar 24, 2020
1 parent f4968af commit da7342d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion uravu/distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def __str__(self):
representation += "{}\n".format(ufloat(self.n, self.s))
else:
representation += "{:.2e}+{:.2e}-{:.2e}\n".format(
self.n, self.con_int[1], self.con_int[0]
self.n, self.con_int[1]-self.n, self.n-self.con_int[0]
)
representation += "Unit: {}\n".format(self.unit)
representation += "Normal: {}\n".format(self.normal)
Expand Down
2 changes: 1 addition & 1 deletion uravu/tests/test_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"Median: -5.70e-01\n"
"Confidence intervals: [-1.04e+00 1.46e+00]\n"
"Confidence interval points: [2.5 97.5]\n"
"Reporting Value: -5.70e-01+1.46e+00--1.04e+00\n"
"Reporting Value: -5.70e-01+2.03e+00-4.68e-01\n"
"Unit: dimensionless\n"
"Normal: False\n"
)
Expand Down

0 comments on commit da7342d

Please sign in to comment.