Skip to content

Commit

Permalink
updated prints again
Browse files Browse the repository at this point in the history
  • Loading branch information
Vebop committed Sep 19, 2024
1 parent 2361aeb commit 5c8bcf9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions notebooks_tsqr/consdb/assorted_plots.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"instrument_list = [ins.strip() for ins in instruments.split(',')]\n",
"\n",
"for instrument in instrument_list:\n",
" display_markdown(f'## Instrument: {instrument}')\n",
" display_markdown(f'## Instrument: {instrument}',raw=True)\n",
" #################### Put in Backend\n",
" ccdvisit1_quicklook = f'''\n",
" SELECT * FROM cdb_{instrument}.ccdvisit1_quicklook\n",
Expand All @@ -92,22 +92,22 @@
" try:\n",
" visits_w_psf = visits[visits['psf_area'].notna()]\n",
" time = visits_w_psf['obs_start']\n",
" display_markdown(f'Number of visits with psf_area populated {len(visits_w_psf)}')\n",
" display_markdown(f'Number of visits with psf_area populated {len(visits_w_psf)}', raw=True)\n",
" display_markdown('### psf_area vs obs_start', raw=True)\n",
" plot(time, visits_w_psf['psf_area'])\n",
" except KeyError as err:\n",
" display_markdown(f\"Psf_area not a column in {instrument} dataframe\")\n",
" print(err)\n",
" print(f\"key error for {err}\")\n",
"\n",
" try:\n",
" visits_w_zero = visits[visits['zero_point'].notna()]\n",
" time = visits_w_zero['obs_start']\n",
" display_markdown(f'Number of visits with zero_point populated {len(visits_w_zero)}')\n",
" display_markdown(f'Number of visits with zero_point populated {len(visits_w_zero)}', raw=True)\n",
" display_markdown('# zero_point vs obs_start', raw=True)\n",
" plot(time, visits_w_zero['zero_point'])\n",
" except KeyError as err:\n",
" display_markdown(f\"Zero_point not a column in {instrument} dataframe\")\n",
" print(err)\n",
" display_markdown(f\"Zero_point not a column in {instrument} dataframe\", raw=True)\n",
" print(f\"key error for {err}\")\n",
"\n",
" # Pare down to only day obs\n",
" visits_today = visits[(visits['day_obs'] == day_obs_int)]\n",
Expand Down

0 comments on commit 5c8bcf9

Please sign in to comment.