Skip to content

Commit

Permalink
Merge branch 'v3' into OFTI_time_warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sblunt committed Jan 16, 2024
2 parents c8facdf + 7c6dcd3 commit 017f0bc
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 119 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ jobs:
python -m pip install . --no-build-isolation
- name: Run tutorial notebooks
run: |
py.test --nbmake docs/tutorials/*.ipynb
py.test --nbmake --nbmake-timeout=3000 docs/tutorials/*.ipynb
5 changes: 5 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ User Guide:
Changelog:
++++++++++

**3.0.0 (TBD)**

- discuss MCMC autocorrelation in MCMC tutorial (@michaelkmpoon)
- add time warning if OFTI doesn't accept an orbit in first 60 s (@michaelkmpoon)

**2.2.2 (2023-06-30)**

- tests now overwrite any generated text files (@sblunt)
Expand Down
195 changes: 78 additions & 117 deletions docs/tutorials/MCMC_tutorial.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion orbitize/nbody.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def calc_orbit(
for j,t in enumerate(te):
sim.integrate(t/365.25)
#for the star and each planet in each epoch denoted by j,t find the RA, Dec, and RV
com = sim.calculate_com()
com = sim.com()
ra_reb[j,0] = -(ps[0].x-com.x)# ra is negative x
dec_reb[j,0] = ps[0].y-com.y
vz[j,0] = ps[0].vz
Expand Down

0 comments on commit 017f0bc

Please sign in to comment.