diff --git a/changelog/169.bugfix.rst b/changelog/169.bugfix.rst new file mode 100644 index 00000000..e69de29b diff --git a/docs/conf.py b/docs/conf.py index 44427a11..7caefbdc 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -2,7 +2,7 @@ # # This file does only contain a selection of the most common options. For a # full list see the documentation: -# http://www.sphinx-doc.org/en/master/config +# https://www.sphinx-doc.org/en/master/config # flake8: NOQA: E402 @@ -20,7 +20,7 @@ os.environ["HOME"] = "/home/docs/" os.environ["LANG"] = "C" os.environ["LC_ALL"] = "C" - os.environ["HIDE_PARFIVE_PROGESS"] = "True" + os.environ["HIDE_PARFIVE_PROGRESS"] = "True" # -- Project information ----------------------------------------------------- diff --git a/radiospectra/spectrogram/sources/callisto.py b/radiospectra/spectrogram/sources/callisto.py index 1baef81b..d8cf028b 100644 --- a/radiospectra/spectrogram/sources/callisto.py +++ b/radiospectra/spectrogram/sources/callisto.py @@ -31,8 +31,8 @@ def __init__(self, data, meta, **kwargs): @property def observatory_location(self): - lat = self.meta["fits_meta"]["OBS_LAT"] * u.deg * 1.0 if self.meta["fits_meta"]["OBS_LAC"] == "N" else -1.0 - lon = self.meta["fits_meta"]["OBS_LON"] * u.deg * 1.0 if self.meta["fits_meta"]["OBS_LOC"] == "E" else -1.0 + lat = self.meta["fits_meta"]["OBS_LAT"] * u.deg * (1.0 if self.meta["fits_meta"]["OBS_LAC"] == "N" else -1.0) + lon = self.meta["fits_meta"]["OBS_LON"] * u.deg * (1.0 if self.meta["fits_meta"]["OBS_LOC"] == "E" else -1.0) height = self.meta["fits_meta"]["OBS_ALT"] * u.m return EarthLocation(lat=lat, lon=lon, height=height) diff --git a/radiospectra/spectrogram/spectrogrambase.py b/radiospectra/spectrogram/spectrogrambase.py index f1cb2b3f..fd3f4395 100644 --- a/radiospectra/spectrogram/spectrogrambase.py +++ b/radiospectra/spectrogram/spectrogrambase.py @@ -11,9 +11,9 @@ class GenericSpectrogram(PcolormeshPlotMixin, NonUniformImagePlotMixin): Attributes ---------- meta : `dict-like` - Meta data for the spectrogram. + Metadata for the spectrogram. data : `numpy.ndarray` - The spectrogram data itself a 2D array. + The spectrogram data itself is a 2D array. """ _registry = {} @@ -91,7 +91,7 @@ def _validate_meta(self): This method includes very basic validation checks which apply to all of the kinds of files that radiospectra can read. Datasource-specific validation should be handled in the relevant - file in the radiospectra.spectrogram.sources. + file in radiospectra.spectrogram.sources. """ msg = "Spectrogram coordinate units for {} axis not present in metadata." err_message = []