From fca2e46340cdabc460947c9e9cbc2c08c1546452 Mon Sep 17 00:00:00 2001 From: Ori Date: Wed, 15 Sep 2021 16:40:15 -0400 Subject: [PATCH] more small style edits --- .../NGC4151_FeII_ContinuumFit.ipynb | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/jdat_notebooks/IFU_cube_continuum_fit/NGC4151_FeII_ContinuumFit.ipynb b/jdat_notebooks/IFU_cube_continuum_fit/NGC4151_FeII_ContinuumFit.ipynb index f3c76034..d632acb0 100644 --- a/jdat_notebooks/IFU_cube_continuum_fit/NGC4151_FeII_ContinuumFit.ipynb +++ b/jdat_notebooks/IFU_cube_continuum_fit/NGC4151_FeII_ContinuumFit.ipynb @@ -398,7 +398,7 @@ "metadata": {}, "outputs": [], "source": [ - "#Apply the spectral region (This code creates new collapsed spectra if you did not create any yourself within jdaviz)\n", + "# Apply the spectral region (This code creates new collapsed spectra if you did not create any yourself within jdaviz)\n", "from specutils.manipulation import extract_region\n", "\n", "if not spectrum1:\n", @@ -535,8 +535,7 @@ "outputs": [], "source": [ "# Extract Continuum Model from Cubeviz above\n", - "cont_psf_cube = cubeviz.app.get_data_from_viewer(\"uncert-viewer\", \"LinFitCont [Cube] 1\")\n", - "# cont_psf_cubee = cubeviz.app.get_data_from_viewer(\"uncert-viewer\", \"LinFitCont [Cube] 2\")" + "cont_psf_cube = cubeviz.app.get_data_from_viewer(\"uncert-viewer\", \"LinFitCont [Cube] 1\")" ] }, { @@ -624,11 +623,10 @@ ] }, { - "cell_type": "markdown", + "cell_type": "raw", "metadata": {}, "source": [ - "And this is just an example of how you can acces the model fit parameter values:\n", - "\n", + "# And this is just an example of how you can acces the model fit parameter values:\n", "params['LinFitCont_3d']['slope']" ] }, @@ -774,19 +772,19 @@ ] }, { - "cell_type": "markdown", + "cell_type": "raw", "metadata": {}, "source": [ - "Developer Note: Saving with 'Count' doesn't work.\n", + "# Developer Note: Saving with 'Count' doesn't work.\n", "\n", - "print(all_spec.flux)
\n", - "os.remove(\"all_spec.fits\")
\n", - "specref=Spectrum1D(flux=all_spec.flux*u.Unit('Jy'), spectral_axis=all_spec.spectral_axis)
\n", - "specref.write(\"all_spec.fits\")
\n", + "print(all_spec.flux)\n", + "os.remove(\"all_spec.fits\")\n", + "specref=Spectrum1D(flux=all_spec.flux*u.Unit('Jy'), spectral_axis=all_spec.spectral_axis)\n", + "specref.write(\"all_spec.fits\")\n", "\n", - "os.remove(\"gauss_spec.fits\")
\n", - "specref=Spectrum1D(flux=gauss_spec.flux*u.Unit('Jy'), spectral_axis=gauss_spec.spectral_axis)
\n", - "specref.write(\"gauss_spec.fits\")
\n" + "os.remove(\"gauss_spec.fits\")\n", + "specref=Spectrum1D(flux=gauss_spec.flux*u.Unit('Jy'), spectral_axis=gauss_spec.spectral_axis)\n", + "specref.write(\"gauss_spec.fits\")" ] }, { @@ -924,7 +922,6 @@ "metadata": {}, "outputs": [], "source": [ - "# del newfull_header['MODE']\n", "del newfinalsub_header['MODE']\n", "\n", "fits.writeto('NGC4151_Hband_ContinuumandBrackettModel.fits', full_model, newfull_header, overwrite=True)\n", @@ -956,7 +953,7 @@ "metadata": {}, "outputs": [], "source": [ - "#Open up a new instance of Cubeviz to visualize continuum subtracted data\n", + "# Open up a new instance of Cubeviz to visualize continuum subtracted data\n", "from jdaviz import CubeViz\n", "cubeviz3 = CubeViz()\n", "cubeviz3.app"