Skip to content

Commit

Permalink
Merge pull request #134 from annierose3/transfer_ir_manual_corr
Browse files Browse the repository at this point in the history
last few PEP 8 corrections in the notebook.
  • Loading branch information
annierose3 authored Nov 14, 2023
2 parents 6179234 + 5a1c884 commit e2fe6a6
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@
"\n",
"# Final error term\n",
"final_err = np.sqrt(RN**2 + signal + (dark_err**2) + (pflat_err*final_sci*dflat)**2\n",
" +(dflat_err*final_sci*pflat)**2) \n",
" + (dflat_err*final_sci*pflat)**2) \n",
"final_err /= (pflat*dflat*final_time)\n",
"final_err[np.isnan(final_err)] = 0\n",
"\n",
Expand Down Expand Up @@ -732,7 +732,7 @@
" RN[512:, 512:] += ima[0].header['READNSED']\n",
"\n",
" # Gain in 4 amps\n",
" gain_2D = np.zeros((1024,1024))\n",
" gain_2D = np.zeros((1024, 1024))\n",
" gain_2D[512:, 0:512] += ima[0].header['ATODGNA']\n",
" gain_2D[0:512, 0:512] += ima[0].header['ATODGNB']\n",
" gain_2D[0:512, 512:] += ima[0].header['ATODGNC']\n",
Expand Down Expand Up @@ -762,7 +762,7 @@
" \n",
" # Final error term\n",
" final_err = np.sqrt(RN**2 + signal + (dark_err**2) + (pflat_err*final_sci*dflat)**2\n",
" +(dflat_err*final_sci*pflat)**2)\n",
" + (dflat_err*final_sci*pflat)**2)\n",
"\n",
" final_err /= (pflat*dflat*final_time)\n",
" final_err[np.isnan(final_err)] = 0\n",
Expand Down Expand Up @@ -835,13 +835,13 @@
"ax1.set_title(\"Reprocessed FLT image\", fontsize=20)\n",
"im1 = plt.imshow(image_new[\"SCI\", 1].data, vmin=0.8, vmax=1.3, \n",
" origin='lower', cmap='Greys_r')\n",
"ax1.tick_params(axis = 'both', labelsize=10)\n",
"ax1.tick_params(axis='both', labelsize=10)\n",
"cbar1 = plt.colorbar(im1, ax=ax1)\n",
"cbar1.ax.tick_params(labelsize=10)\n",
"\n",
"ax2 = fig.add_subplot(rows, columns, 2)\n",
"ax2.set_title(\"Original FLT image\", fontsize=20)\n",
"im2=plt.imshow(image_old[\"SCI\", 1].data, vmin=0.8, vmax=1.3, \n",
"im2 = plt.imshow(image_old[\"SCI\", 1].data, vmin=0.8, vmax=1.3, \n",
" origin='lower', cmap='Greys_r')\n",
"ax2.tick_params(axis='both', labelsize=10)\n",
"cbar2 = plt.colorbar(im2, ax=ax2)\n",
Expand Down Expand Up @@ -965,7 +965,7 @@
"# Add the total exptime in the title \n",
"ax1 = fig.add_subplot(rows, columns, 1)\n",
"ax1.set_title(\"Reprocessed DRZ Image\", fontsize=20)\n",
"vmin,vmax = zscale(Orig_DRZ)\n",
"vmin, vmax = zscale(Orig_DRZ)\n",
"im1 = plt.imshow(DRZ_image, vmin=vmin, vmax=vmax, origin='lower', cmap='Greys_r')\n",
"_ = plt.colorbar()\n",
"\n",
Expand Down

0 comments on commit e2fe6a6

Please sign in to comment.