Skip to content

Commit

Permalink
Add support for SNAX triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Davis committed Feb 12, 2025
1 parent e972226 commit bb78a4b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hveto/triggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"pycbc_live": "hdf5.pycbc_live",
"kleinewelle": "ligolw",
"dmt_omega": "ligolw",
"snax": "hdf5.snax",
}

DEFAULT_TRIGFIND_OPTIONS = {
Expand All @@ -66,6 +67,9 @@
},
("omicron", "root.omicron"): {
"ext": "root",
},
("snax", "hdf5"): {
"ext": "h5",
}
}

Expand All @@ -89,6 +93,9 @@
"loudest": True,
"columns": ["end_time", "template_duration", "new_snr"],
},
("snax", "hdf5.snax"): {
"columns": ["time", "frequency", "snr"],
},
}


Expand Down Expand Up @@ -248,6 +255,8 @@ def _format_params(channel, etg, fmt, trigfind_kwargs, read_kwargs):
# custom params for ETGs
if etg == "pycbc_live":
read_kwargs.setdefault("ifo", channel.split(":", 1)[0])
if etg == "snax":
read_kwargs.setdefault("channels", channel)

return trigfind_kwargs, read_kwargs

Expand Down

0 comments on commit bb78a4b

Please sign in to comment.