diff --git a/tutorials/FITS-cubes/FITS-cubes.ipynb b/tutorials/FITS-cubes/FITS-cubes.ipynb index d3bd033a..33a7be74 100755 --- a/tutorials/FITS-cubes/FITS-cubes.ipynb +++ b/tutorials/FITS-cubes/FITS-cubes.ipynb @@ -591,7 +591,7 @@ "\n", "# Display the moment map image\n", "im = ax.imshow(herschel_data_nonans, cmap='viridis', \n", - " norm=LogNorm(), vmin=2, vmax=50)\n", + " norm=LogNorm(vmin=2, vmax=50))\n", "# ax.invert_yaxis() # Flips the Y axis \n", "\n", "# Add axes labels\n", @@ -633,7 +633,7 @@ "\n", "# Display the moment map image\n", "im = ax.imshow(herschel_data_nonans, cmap='viridis', \n", - " norm=LogNorm(), vmin=5, vmax=50, alpha=.8)\n", + " norm=LogNorm(vmin=5, vmax=50), alpha=.8)\n", "# ax.invert_yaxis() # Flips the Y axis \n", "\n", "# Add axes labels\n", @@ -748,7 +748,7 @@ "\n", "# Display the moment map image\n", "im = ax.imshow(rescaled_herschel_data_nonans, cmap = 'viridis', \n", - " norm = LogNorm(), vmin = 5, vmax = 50, alpha = .8)\n", + " norm = LogNorm(vmin=5, vmax=50), alpha = .8)\n", "#im = ax.imshow(rescaled_herschel_imagehdu.data, cmap = 'viridis', \n", "# norm = LogNorm(), vmin = 5, vmax = 50, alpha = .8)\n", "ax.invert_yaxis() # Flips the Y axis \n", diff --git a/tutorials/astropy-coordinates/1-Coordinates-Intro.ipynb b/tutorials/astropy-coordinates/1-Coordinates-Intro.ipynb index e16e8457..3e3dff2a 100644 --- a/tutorials/astropy-coordinates/1-Coordinates-Intro.ipynb +++ b/tutorials/astropy-coordinates/1-Coordinates-Intro.ipynb @@ -295,17 +295,19 @@ "metadata": {}, "outputs": [], "source": [ - "cols = ['source_id',\n", - " 'ra',\n", - " 'dec',\n", - " 'parallax',\n", - " 'parallax_error',\n", - " 'pmra',\n", - " 'pmdec',\n", - " 'radial_velocity',\n", - " 'phot_g_mean_mag',\n", - " 'phot_bp_mean_mag',\n", - " 'phot_rp_mean_mag']\n", + "cols = [\n", + " 'source_id',\n", + " 'ra',\n", + " 'dec',\n", + " 'parallax',\n", + " 'parallax_error',\n", + " 'pmra',\n", + " 'pmdec',\n", + " 'radial_velocity',\n", + " 'phot_g_mean_mag',\n", + " 'phot_bp_mean_mag',\n", + " 'phot_rp_mean_mag'\n", + "]\n", "ngc188_table[cols].write('gaia_results.fits', overwrite=True)" ] }, @@ -503,7 +505,7 @@ "metadata": {}, "outputs": [], "source": [ - "gaia_dist = Distance(parallax=ngc188_table_3d['parallax'])" + "gaia_dist = Distance(parallax=ngc188_table_3d['parallax'].filled(np.nan))" ] }, { diff --git a/tutorials/gaia-galactic-orbits/gaia-galactic-orbits.ipynb b/tutorials/gaia-galactic-orbits/gaia-galactic-orbits.ipynb index 199a7931..13620319 100644 --- a/tutorials/gaia-galactic-orbits/gaia-galactic-orbits.ipynb +++ b/tutorials/gaia-galactic-orbits/gaia-galactic-orbits.ipynb @@ -490,7 +490,7 @@ "source": [ "fig, ax = plt.subplots(1, 1, figsize=(6, 6))\n", "\n", - "ax.plot(BP_RP, M_G, \n", + "ax.plot(BP_RP.value, M_G.value, \n", " marker='.', linestyle='none', alpha=0.3)\n", "\n", "ax.set_xlim(0, 3)\n", @@ -576,12 +576,12 @@ "source": [ "fig, ax = plt.subplots(1, 1, figsize=(6, 6))\n", "\n", - "ax.plot(BP_RP, M_G, \n", + "ax.plot(BP_RP.value, M_G.value, \n", " marker='.', linestyle='none', alpha=0.1)\n", "\n", "for mask, color in zip([lo_mass_mask, hi_mass_mask],\n", " [lo_mass_color, hi_mass_color]):\n", - " ax.plot(BP_RP[mask], M_G[mask], \n", + " ax.plot(BP_RP[mask].value, M_G[mask].value, \n", " marker='.', linestyle='none', \n", " alpha=0.5, color=color)\n", "\n",