Skip to content

Commit

Permalink
figure out proper time slice based on flags in both polarizations
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdillon committed Jun 19, 2024
1 parent 019df0c commit fc3ecf7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions notebooks/single_baseline_postprocessing_and_pspec.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,9 @@
"print(f'Below FM Frequency Slice: {low_band}')\n",
"print(f'Above FM Frequency Slice: {high_band}')\n",
"\n",
"# figure out the range of unflagged times\n",
"tslice = slice(true_stretches(~np.all(flags[bl], axis=1))[0].start, true_stretches(~np.all(flags[bl], axis=1))[-1].stop)\n",
"\n",
"# figure out the range of unflagged times for both polarizations\n",
"ORed_flags = np.all(flags[ANTPAIR + ('ee',)], axis=1) | np.all(flags[ANTPAIR + ('nn',)], axis=1)\n",
"tslice = slice(true_stretches(~ORed_flags)[0].start, true_stretches(~ORed_flags)[-1].stop)\n",
"print(f'Time Slice Excluded Edge Flags: {tslice}')"
]
},
Expand Down

0 comments on commit fc3ecf7

Please sign in to comment.