Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update socket_grex.py #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions grex_t2/socket_grex.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

nbeams_queue = deque(maxlen=10)

def filter_candidates(candsfile, output=True, trigger=True, last_trigger_time=0.0):
def filter_candidates(candsfile, output=True, trigger=True, last_trigger_time=0.0, min_dm=50, max_ibox=64, min_snr=12.5, min_snr_t2out=15.0):
"""Take a single gulp of candidates,
parse, cluster, and then filter to
produce highest S/N candidate and save
Expand All @@ -21,10 +21,6 @@ def filter_candidates(candsfile, output=True, trigger=True, last_trigger_time=0.
outroot = "/hdd/data/candidates/T2/"

col_heimdall = ["snr", "if", "itime", "mjds", "ibox", "idm", "dm", "ibeam"]
min_dm = 50
max_ibox = 64
min_snr = 12.5
min_snr_t2out = 15.0
max_ncl = np.inf
max_cntb = np.inf
max_cntb0 = np.inf
Expand Down
Loading