From edc0d2d81633ac410972f331e20169b4bb45345d Mon Sep 17 00:00:00 2001 From: TheWand3rer Date: Fri, 11 Jul 2025 11:37:42 +0200 Subject: [PATCH 1/2] FIX: incorrect parameter for JPL Horizons, changed to 'BODY EQUATOR' -> 'BODY' --- astroquery/jplhorizons/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/astroquery/jplhorizons/core.py b/astroquery/jplhorizons/core.py index 34bf0f9f06..1cd68267b1 100644 --- a/astroquery/jplhorizons/core.py +++ b/astroquery/jplhorizons/core.py @@ -906,7 +906,7 @@ def elements_async(self, *, get_query_payload=False, ('OBJ_DATA', 'YES'), ('REF_SYSTEM', refsystem), ('REF_PLANE', {'ecliptic': 'ECLIPTIC', 'earth': 'FRAME', - 'body': "'BODY EQUATOR'"}[refplane]), + 'body': 'BODY'}[refplane]), ('TP_TYPE', {'absolute': 'ABSOLUTE', 'relative': 'RELATIVE'}[tp_type])]) @@ -1149,7 +1149,7 @@ def vectors_async(self, *, get_query_payload=False, ('REF_PLANE', {'ecliptic': 'ECLIPTIC', 'earth': 'FRAME', 'frame': 'FRAME', - 'body': "'BODY EQUATOR'"}[refplane]), + 'body': 'BODY'}[refplane]), ('REF_SYSTEM', 'ICRF'), ('TP_TYPE', 'ABSOLUTE'), ('VEC_LABELS', 'YES'), From 96afeac1f32b32f908c766d43d204912669056e7 Mon Sep 17 00:00:00 2001 From: TheWand3rer Date: Tue, 22 Jul 2025 17:28:14 +0200 Subject: [PATCH 2/2] added changelog entry --- CHANGES.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index e3af10bd20..774fefa9c2 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -36,6 +36,11 @@ gaia - New method cross_match_basic that simplifies the positional x-match method [#3320] - new DR4 datalink retrieve type MEAN_SPECTRUM_RVS [#3342] +jplhorizons +^^^^^^^^^^^ + +- Fixed incorrect ``refplane`` parameter value: the API did not accept ``BODY EQUATOR`` but required ``BODY``. [#3370] + linelists.cdms ^^^^^^^^^^^^^^