Skip to content

Commit

Permalink
fixing syntax errors with comparing literals
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackie-Brown committed Oct 30, 2024
1 parent 318cd1e commit bb13f11
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 10,
"id": "520b8fa0",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit bb13f11

Please sign in to comment.