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.
This commit is contained in:
Don Cross
2022-09-07 18:39:31 -04:00
parent 1012bca47f
commit f187bc3e22
4 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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.