From f187bc3e22dec40dbf838cb85b99d203a4654638 Mon Sep 17 00:00:00 2001 From: Don Cross Date: Wed, 7 Sep 2022 18:39:31 -0400 Subject: [PATCH] Fixed mistake in Python enum for not correcting refraction. GitHub user `hidp123` submitted the following pull request: https://github.com/cosinekitty/astronomy/pull/240 The problem was I had documentation for the Python enum `Refraction` where I incorrectly wrote `Refraction.None` instead of the correct name `Refraction.Airless`. The fix in the pull request was correct, but it was applied to generated source code, so it did not correctly update the template file or the online documentation. This commit fixes the mistake in all the affected files. --- demo/python/astronomy.py | 2 +- generate/template/astronomy.py | 2 +- source/python/README.md | 2 +- source/python/astronomy/astronomy.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/demo/python/astronomy.py b/demo/python/astronomy.py index 9efc2fe8..448ecb70 100644 --- a/demo/python/astronomy.py +++ b/demo/python/astronomy.py @@ -5097,7 +5097,7 @@ def Horizon(time, observer, ra, dec, refraction): refraction : Refraction The option for selecting whether to correct for atmospheric lensing. If `Refraction.Normal`, a well-behaved refraction model is used. - If `Refraction.None`, no refraction correct is performed. + If `Refraction.Airless`, no refraction correct is performed. `Refraction.JplHorizons` is used only for compatibility testing with the JPL Horizons online tool. diff --git a/generate/template/astronomy.py b/generate/template/astronomy.py index 74622f98..6dd3f02b 100644 --- a/generate/template/astronomy.py +++ b/generate/template/astronomy.py @@ -3055,7 +3055,7 @@ def Horizon(time, observer, ra, dec, refraction): refraction : Refraction The option for selecting whether to correct for atmospheric lensing. If `Refraction.Normal`, a well-behaved refraction model is used. - If `Refraction.None`, no refraction correct is performed. + If `Refraction.Airless`, no refraction correct is performed. `Refraction.JplHorizons` is used only for compatibility testing with the JPL Horizons online tool. diff --git a/source/python/README.md b/source/python/README.md index 09cbc726..fb8c683f 100644 --- a/source/python/README.md +++ b/source/python/README.md @@ -1748,7 +1748,7 @@ to the respective `ra` and `dec` values passed in. | [`Observer`](#Observer) | `observer` | The location of the observer for which to find horizontal coordinates. | | `float` | `ra` | Right ascension in sidereal hours of the celestial object, referred to the mean equinox of date for the J2000 epoch. | | `float` | `dec` | Declination in degrees of the celestial object, referred to the mean equator of date for the J2000 epoch. Positive values are north of the celestial equator and negative values are south of it. | -| [`Refraction`](#Refraction) | `refraction` | The option for selecting whether to correct for atmospheric lensing. If `Refraction.Normal`, a well-behaved refraction model is used. If `Refraction.None`, no refraction correct is performed. `Refraction.JplHorizons` is used only for compatibility testing with the JPL Horizons online tool. | +| [`Refraction`](#Refraction) | `refraction` | The option for selecting whether to correct for atmospheric lensing. If `Refraction.Normal`, a well-behaved refraction model is used. If `Refraction.Airless`, no refraction correct is performed. `Refraction.JplHorizons` is used only for compatibility testing with the JPL Horizons online tool. | **Returns**: [`HorizontalCoordinates`](#HorizontalCoordinates) The horizontal coordinates (altitude and azimuth), along with diff --git a/source/python/astronomy/astronomy.py b/source/python/astronomy/astronomy.py index 9efc2fe8..448ecb70 100644 --- a/source/python/astronomy/astronomy.py +++ b/source/python/astronomy/astronomy.py @@ -5097,7 +5097,7 @@ def Horizon(time, observer, ra, dec, refraction): refraction : Refraction The option for selecting whether to correct for atmospheric lensing. If `Refraction.Normal`, a well-behaved refraction model is used. - If `Refraction.None`, no refraction correct is performed. + If `Refraction.Airless`, no refraction correct is performed. `Refraction.JplHorizons` is used only for compatibility testing with the JPL Horizons online tool.