From 92017082a4b90ec75fe060012d4815d154320fe3 Mon Sep 17 00:00:00 2001 From: Jason Wang Date: Mon, 8 Jan 2024 14:40:08 -0600 Subject: [PATCH 1/2] replace depricated calculate_com function --- orbitize/nbody.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orbitize/nbody.py b/orbitize/nbody.py index cd3c408d..362b766b 100644 --- a/orbitize/nbody.py +++ b/orbitize/nbody.py @@ -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 From dc93e0c0288bb1bfe014d90e20100c4c099005be Mon Sep 17 00:00:00 2001 From: Sarah Blunt Date: Thu, 11 Jan 2024 16:52:03 -0800 Subject: [PATCH 2/2] allow longer time for nb cells to run before timeout error --- .github/workflows/run-notebooks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-notebooks.yml b/.github/workflows/run-notebooks.yml index c1ff0a28..fea767bd 100644 --- a/.github/workflows/run-notebooks.yml +++ b/.github/workflows/run-notebooks.yml @@ -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