Skip to content

Commit

Permalink
don't save pickle of save results is false
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdillon committed Jul 16, 2024
1 parent eae90a1 commit ca75979
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions notebooks/file_postprocessing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,9 @@
"flagged_bls = [bl for bl in flags if np.all(flags[bl])]\n",
"flagged_ants = [ant for ant in cal_flags if np.all(cal_flags[ant])]\n",
"reds_used_here = redcal.filter_reds(reds, ex_bls=flagged_bls, ex_ants=flagged_ants)\n",
"with open(REDS_PICKLE_FILE, 'wb') as reds_pickle_file:\n",
" pickle.dump(reds_used_here, reds_pickle_file)"
"if SAVE_RESULTS:\n",
" with open(REDS_PICKLE_FILE, 'wb') as reds_pickle_file:\n",
" pickle.dump(reds_used_here, reds_pickle_file)"
]
},
{
Expand Down

0 comments on commit ca75979

Please sign in to comment.