Skip to content

Commit

Permalink
more small style edits
Browse files Browse the repository at this point in the history
  • Loading branch information
orifox authored and ojustino committed Sep 15, 2021
1 parent af98f80 commit fca2e46
Showing 1 changed file with 14 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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\")"
]
},
{
Expand Down Expand Up @@ -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']"
]
},
Expand Down Expand Up @@ -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)<br />\n",
"os.remove(\"all_spec.fits\")<br />\n",
"specref=Spectrum1D(flux=all_spec.flux*u.Unit('Jy'), spectral_axis=all_spec.spectral_axis)<br />\n",
"specref.write(\"all_spec.fits\")<br />\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\")<br />\n",
"specref=Spectrum1D(flux=gauss_spec.flux*u.Unit('Jy'), spectral_axis=gauss_spec.spectral_axis)<br />\n",
"specref.write(\"gauss_spec.fits\")<br />\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\")"
]
},
{
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit fca2e46

Please sign in to comment.