Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jobs:
runs-on: ubuntu-latest
name: flake8
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jobs:
runs-on: ubuntu-latest
name: mypy
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies
Expand Down
124 changes: 63 additions & 61 deletions README.rst

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "tess-ephem"
version = "0.6.3"
version = "0.6.4"
description = "Where are Solar System objects located in TESS FFI data?"
license = "MIT"
authors = ["Geert Barentsen <hello@geert.io>",
Expand Down
2 changes: 1 addition & 1 deletion src/tess_ephem/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

from .ephem import TessEphem, ephem # noqa: E402

__version__ = "0.6.3"
__version__ = "0.6.4"
__all__ = ["ephem", "TessEphem"]
10 changes: 5 additions & 5 deletions src/tess_ephem/ephem.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ def __init__(
self._deltaf = CubicSpline(eph["datetime_jd"], eph["delta"])
# Delta-T (TDB - UT)
self._deltat = CubicSpline(eph["datetime_jd"], eph["TDB-UT"])
# Phase angle
self._phif = CubicSpline(eph["datetime_jd"], eph["alpha_true"])
# Sun-Target-Observer (~phase) angle
self._alphaf = CubicSpline(eph["datetime_jd"], eph["alpha"])
# Motion expressed in TESS pixels per hour
motion = (
np.hypot(eph["RA_rate"].quantity, eph["DEC_rate"].quantity)
Expand Down Expand Up @@ -105,7 +105,7 @@ def predict_sky(self, time: Time) -> DataFrame:
H = np.full(len(time.jd), np.nan)
r = self._rf(time.jd)
delta = self._deltaf(time.jd)
phi = self._phif(time.jd)
sto_angle = self._alphaf(time.jd)
motion = self._motionf(time.jd)
deltat = self._deltat(time.jd)
return DataFrame(
Expand All @@ -119,7 +119,7 @@ def predict_sky(self, time: Time) -> DataFrame:
"hmag": H,
"sun_distance": r,
"obs_distance": delta,
"phase_angle": phi,
"sto_angle": sto_angle,
}
)

Expand Down Expand Up @@ -288,7 +288,7 @@ def _get_horizons_ephem(
step: str = "12H",
id_type: str = "smallbody",
location: str = "@TESS",
quantities: str = "1,3,9,19,20,30,43",
quantities: str = "1,3,9,19,20,24,30",
):
"""Returns JPL Horizons ephemeris.

Expand Down
2 changes: 1 addition & 1 deletion tests/test_ephem.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_predict():
# 2. using tessrip to get average WCS from sector/camera/ccd
# 3. converting RA,Dec to col,row with wcs_world2pix()
assert np.round(pixel_locations.iloc[0]["row"], 1) == 1107.6
assert np.round(pixel_locations.iloc[0]["column"], 1) == 1087.8
assert np.round(pixel_locations.iloc[0]["column"], 1) == 1087.9


def test_orbital_elements():
Expand Down