Skip to content

Commit

Permalink
docs + comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Pearson committed Oct 24, 2023
1 parent 5194551 commit 129d85d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/nbody/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The lomb-scargle periodogram from our ephemeris fitting code can be used to esti

![](ttv_prior.png)

The example code has recently been refactored from [Nbody-AI](https://github.com/pearsonkyle/Nbody-ai) and is still in development. Some retrievals not work entirely... please be paitent and report any issues to our slack.
The example code has recently been refactored from [Nbody-AI](https://github.com/pearsonkyle/Nbody-ai) and is still in development. Some retrievals not work entirely... please be paitent and report any issues to our slack.

If you make use of this code please cite:

Expand Down
4 changes: 2 additions & 2 deletions examples/nbody/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,5 @@
# run the fitter
nfit = nbody_fitter(data, nbody_prior, nbody_bounds)

print(nfit.parameters)
print(nfit.errors)
# print(nfit.parameters)
# print(nfit.errors)
8 changes: 4 additions & 4 deletions exotic/api/nbody.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
from ultranest import ReactiveNestedSampler
from astropy.io import fits
from astropy import units as u
from astropy import constants as c
from scipy.interpolate import interp1d
from astropy.timeseries import LombScargle
from scipy.signal import find_peaks
Expand Down Expand Up @@ -609,7 +608,8 @@ def prior_transform(upars):
self.quantiles = {}
self.parameters = copy.deepcopy(self.prior)

# TODO finish
# TODO finish saving final results + posteriors

#for i, key in enumerate(freekeys):
# self.parameters[key] = self.results['maximum_likelihood']['point'][i]
# self.errors[key] = self.results['posterior']['stdev'][i]
Expand Down Expand Up @@ -750,5 +750,5 @@ def prior_transform(upars):
# run the fitter
nfit = nbody_fitter(data, nbody_prior, nbody_bounds)

print(nfit.parameters)
print(nfit.errors)
# print(nfit.parameters)
# print(nfit.errors)

0 comments on commit 129d85d

Please sign in to comment.