Gravity-Spy / GravitySpy

This repo contains code for the GravitySpy Citizen Science project.
GNU General Public License v3.0
14 stars 18 forks source link

gspy_triggers #40

Open siddharth101 opened 4 years ago

siddharth101 commented 4 years ago

Added a function in utils.py to fetch triggers classified by GravitySpy. This will allow users to obtain the data in the format of a pandas Dataframe, the function gives the option to save the data in a csv file.

The following bit of code will fetch all the triggers labeled as Fast_Scattering at L1 between Nov 5 and Nov 15 in O3b with SNR between 12 and 18 and confidence above 0.8.

from gwpy.time import to_gps, from_gps t1, t2 = to_gps('2019-11-05'), to_gps('2019-11-15') from gravityspy.utils.utils import gspy_triggers gspy_triggers(t1, t2, label='Fast_Scattering', ifo = 'L1', snr_low = 12.0, snr_high=18.0, confidence=0.8)

pep8speaks commented 4 years ago

Hello @siddharth101! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers:

Comment last updated at 2020-09-21 17:28:39 UTC