diff --git a/ch_ephem/__init__.py b/ch_ephem/__init__.py index 793bc11..24794fe 100644 --- a/ch_ephem/__init__.py +++ b/ch_ephem/__init__.py @@ -5,13 +5,12 @@ Any ephemeris routine which needs to know the location of the observer on the Earth are accessible via instrument Observer -instances obtainable through :py:meth:`ch_ephem.observers.get`: +instances importable from :py:meth:`ch_ephem.observers`: - >>> import ch_ephem.observers - >>> pathfinder = ch_ephem.observers.get("pathfinder") + >>> from ch_ephem.observers import pathfinder >>> pathfinder.solar_transit(...) -The `Observer` instances returned by this method are subclassed from +The `Observer` instances provided by this module are subclassed from `caput.time.Observers` and can be used as normal `caput` observers. Location and geometry data for the instrument observers are defined in the data file `instruments.yaml` provided as part of `ch_ephem`. diff --git a/ch_ephem/observers.py b/ch_ephem/observers.py index bc1fe26..06ec1fa 100644 --- a/ch_ephem/observers.py +++ b/ch_ephem/observers.py @@ -24,7 +24,7 @@ `caput.time.Observer` to additionally provide rotation, roll and tangent-space offset for the instruments: - >>> pathfinder = ch_ephem.observers.get("pathfinder") + >>> from ch_ephem.observers import pathfinder >>> print(pathfinder.rotation) 1.986 >>> print(pathfinder.roll) @@ -173,7 +173,7 @@ def __getattr__(name: str) -> Observer: Raises ------ - ValueError: + AttributeError: Data for the instrument named could not be found. """