Skip to content

Commit

Permalink
fix styling/syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
gibsongreen committed Nov 4, 2024
1 parent bb13f11 commit 61244a8
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
" None \n",
" \n",
" if feature == 'companion':\n",
" if 'comp_sep' == None or 'comp_contrast' == None:\n",
" if comp_sep is None or comp_contrast is 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' == None:\n",
" if disk_contrast is 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' == None:\n",
" if disk_filename is 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 == None:\n",
" elif diskprofile is None:\n",
" None\n",
" \n",
" else:\n",
" raise NameError(\"Disk profile not specified. Must be either 'flat' or 'sb_profile'.\")\n",
" \n",
" elif feature == None:\n",
" elif feature is None:\n",
" None\n",
" \n",
" plt.legend(fontsize=18, loc='best', markerscale=0.5)\n",
Expand Down

0 comments on commit 61244a8

Please sign in to comment.