From 0e391fd762346605ea85badd0adf0b44c3167b0f Mon Sep 17 00:00:00 2001 From: Hatice Karatay Date: Mon, 16 Oct 2023 21:54:25 -0400 Subject: [PATCH] Fix the remaining style errors on the 02 and 03 nb --- .../02_Cross_correlation_template.ipynb | 4 ++-- .../03_Spatially_resolved_emission_line_map.ipynb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/notebooks/NIRISS_WFSS_postpipeline/02_Cross_correlation_template.ipynb b/notebooks/NIRISS_WFSS_postpipeline/02_Cross_correlation_template.ipynb index 72b374359..66d145eb8 100644 --- a/notebooks/NIRISS_WFSS_postpipeline/02_Cross_correlation_template.ipynb +++ b/notebooks/NIRISS_WFSS_postpipeline/02_Cross_correlation_template.ipynb @@ -603,7 +603,7 @@ "metadata": {}, "outputs": [], "source": [ - "# Redshift based on parabolic fit to mazimum\n", + "# Redshift based on parabolic fit to maximum\n", "n = 8 # points to the left or right of correlation maximum\n", "peak_lags = lag[index_peak-n:index_peak+n+1].value\n", "peak_vals = corr[index_peak-n:index_peak+n+1].value\n", @@ -631,7 +631,7 @@ "metadata": {}, "outputs": [], "source": [ - "print('z =' ,z)\n", + "print('z =', z)\n", "plt.figure()\n", "\n", "plt.plot(\n", diff --git a/notebooks/NIRISS_WFSS_postpipeline/03_Spatially_resolved_emission_line_map.ipynb b/notebooks/NIRISS_WFSS_postpipeline/03_Spatially_resolved_emission_line_map.ipynb index 606093383..ff3f2d309 100755 --- a/notebooks/NIRISS_WFSS_postpipeline/03_Spatially_resolved_emission_line_map.ipynb +++ b/notebooks/NIRISS_WFSS_postpipeline/03_Spatially_resolved_emission_line_map.ipynb @@ -238,7 +238,7 @@ "outputs": [], "source": [ "# Repeat this along y-axis;\n", - "flux_cont2d = data_2d[:,:] * 0\n", + "flux_cont2d = data_2d[:, :] * 0\n", "for yy in range(len(data_2d[:, 0])):\n", "\n", " mask_line = ((wave_2d[yy, :] > 1.75) & (wave_2d[yy, :] < 1.97)) | ((wave_2d[yy, :] > 2.08) & (wave_2d[yy, :] < 2.23))\n", @@ -265,7 +265,7 @@ "metadata": {}, "outputs": [], "source": [ - "plt.imshow(data_2d[:,:] - flux_cont2d[:, :])\n", + "plt.imshow(data_2d[:, :] - flux_cont2d[:, :])\n", "plt.title('Continuum subtracted spectrum')" ] },