Skip to content

Commit

Permalink
Merge pull request #9 from john-livingston/master
Browse files Browse the repository at this point in the history
fix typos / example output in readme
  • Loading branch information
RuthAngus committed Sep 9, 2019
2 parents 0ab5c8d + 5c0d45c commit 6db72c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ Example usage
# much higher when running for real, or using the default value of 100000.

# Print the median age with the 16th and 84th percentile uncertainties.
age, errp, errm, samples = star.age_results()
print("stellar age = {0:.2f} + {1:.2f} + {2:.2f}".format(age, errp, errm))
age, errm, errp, samples = star.age_results()
print("stellar age = {0:.2f} + {1:.2f} - {2:.2f}".format(age, errp, errm))

>> stellar age = 2.97 + 0.60 + 0.55
>> stellar age = 2.97 + 0.55 - 0.60

If you want to just use a simple gyrochronology model without running MCMC,
you can predict a stellar age from a rotation period like this:
Expand Down

0 comments on commit 6db72c9

Please sign in to comment.