From 06ae6da1aa0b85483874c6ac8f74dc06acd4676b Mon Sep 17 00:00:00 2001 From: Brett Morris Date: Wed, 25 Mar 2020 20:18:47 +0100 Subject: [PATCH] flake8 fixes, figure tweak --- docs/index.rst | 1 + retrieval/core.py | 1 - retrieval/spectrum.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 7b46293..07c8b91 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -22,6 +22,7 @@ Here's a simple example: ax.set_xlabel('Wavelength [$\mu$m]') ax.set_ylabel('Transit depth') ax.legend() + plt.tight_layout() plt.show() diff --git a/retrieval/core.py b/retrieval/core.py index 8ffcd43..d58cc73 100644 --- a/retrieval/core.py +++ b/retrieval/core.py @@ -26,7 +26,6 @@ def transit_depth(temperature): """ wavenumber, kappa = water_opacity(temperature) - g = G * M_jup / R_jup**2 rstar = 1 * R_sun diff --git a/retrieval/spectrum.py b/retrieval/spectrum.py index cee760d..41a738f 100644 --- a/retrieval/spectrum.py +++ b/retrieval/spectrum.py @@ -24,4 +24,4 @@ def plot(self, ax=None, **kwargs): ax.plot(self.wavelength, self.flux, **kwargs) - return ax \ No newline at end of file + return ax