diff --git a/notebooks/STIS/contrast_sensitivity/STIS_Coronagraphic_Observation_Feasibility.ipynb b/notebooks/STIS/contrast_sensitivity/STIS_Coronagraphic_Observation_Feasibility.ipynb index 708745b25..e2eb0e092 100644 --- a/notebooks/STIS/contrast_sensitivity/STIS_Coronagraphic_Observation_Feasibility.ipynb +++ b/notebooks/STIS/contrast_sensitivity/STIS_Coronagraphic_Observation_Feasibility.ipynb @@ -153,7 +153,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 10, "id": "520b8fa0", "metadata": {}, "outputs": [], @@ -229,9 +229,9 @@ " \n", " contrast_plot = plt.figure(figsize=(14, 10))\n", "\n", - " plt.plot(rawr, cperpix_5sigma, label='Predicted Limit 5 $\\sigma$', color='lightsteelblue')\n", - " plt.plot(rawr, cperpix_3sigma, label='Predicted Limit 3 $\\sigma$', color='steelblue')\n", - " plt.plot(rawr, cperpix_1sigma, label='Predicted Limit 1 $\\sigma$', color='midnightblue')\n", + " plt.plot(rawr, cperpix_5sigma, label='Predicted Limit 5 sigma', color='lightsteelblue')\n", + " plt.plot(rawr, cperpix_3sigma, label='Predicted Limit 3 sigma', color='steelblue')\n", + " plt.plot(rawr, cperpix_1sigma, label='Predicted Limit 1 sigma', color='midnightblue')\n", "\n", " plt.fill_between(rawr, cperpix_5sigma, color='lightsteelblue')\n", " plt.fill_between(rawr, cperpix_3sigma, color='steelblue')\n", @@ -243,7 +243,7 @@ " None \n", " \n", " if feature == 'companion':\n", - " if 'comp_sep' is None or 'comp_contrast' is None:\n", + " if 'comp_sep' == None or 'comp_contrast' == None:\n", " raise NameError(\"Companion separation ('comp_sep') or companion contrast ('comp_contrast') or not specified.\") \n", " comp_separation = comp_sep\n", " comp_contrast = comp_contrast\n", @@ -257,13 +257,13 @@ " diskprofile = disk_profile\n", " \n", " if diskprofile == 'flat':\n", - " if 'disk_contrast' is None:\n", + " if 'disk_contrast' == None:\n", " raise NameError(\"Disk contrast not specified.\")\n", " diskcontrast = disk_contrast\n", " plt.axhline(diskcontrast, ls='--', linewidth=4, color='orange', label=target_name)\n", " \n", " elif diskprofile == 'sb_profile':\n", - " if 'disk_filename' is None:\n", + " if 'disk_filename' == None:\n", " raise NameError(\"Surface brightness profile file name is not specified.\")\n", " \n", " diskfilename = disk_filename\n", @@ -272,13 +272,13 @@ " disk_cont = disk_sb_profile[:, 1]\n", " plt.plot(disk_r, disk_cont, ls='--', linewidth=4, color='orange', label=target_name)\n", " \n", - " elif diskprofile is None:\n", + " elif diskprofile == None:\n", " None\n", " \n", " else:\n", " raise NameError(\"Disk profile not specified. Must be either 'flat' or 'sb_profile'.\")\n", " \n", - " elif feature is None:\n", + " elif feature == None:\n", " None\n", " \n", " plt.legend(fontsize=18, loc='best', markerscale=0.5)\n",