Skip to content

Commit

Permalink
Test: Python 3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bgamari committed Jun 26, 2018
1 parent 8f7419b commit e1d1405
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ def exponential_decay(t, amplitude, rate):
# Run it
res = fit.fit({'amp': 3, 'rate': 1./100})

print 'parameters', res.params
print 'covariance', res.covar
print 'reduced chi-squared', res.curves['curve1'].reduced_chi_sqr
print('parameters', res.params)
print('covariance', res.covar)
print('reduced chi-squared', res.curves['curve1'].reduced_chi_sqr)

from matplotlib import pyplot as pl
pl.plot(xs, ys)
Expand Down

0 comments on commit e1d1405

Please sign in to comment.