class gravityspy.table.events.Events(data=None, masked=None, names=None, dtype=None, meta=None, copy=True, rows=None, copy_indices=True, **kwargs)[source]

Bases: gwpy.table.gravityspy.GravitySpyTable

This class provides method for classifying events with gravityspy

classify(path_to_cnn, **kwargs)[source]

Classify triggers in this table

Parameters:

path_to_cnn:
file name of the CNN you would like to use
**kwargs:
nproc : number of parallel event times to be processing at once
Returns:
Events table
cluster(nclusters, random_state=30)[source]

Create new clusters from feature space vectors

Parameters:

nclusters (int): how many clusters to try to group
these triggers into
Returns:
Events table
create_collection(name=None, private=True, default_subject=None)[source]

Obtain omicron triggers to run gravityspy on

Parameters:
name (str, optional):
name of collection
private (bool, optional):
would you like this collection to be private or public
default_subject (int, optional):
subject id to be the cover image of collection
Returns:
str url link to the created collection
determine_workflow_and_subjectset(project_info_pickle)[source]

Obtain omicron triggers to run gravityspy on

Parameters:
path_to_cnn (str): filename of file with Gravity Spy project info
Returns:
Events table with columns workflow and subjectset
classmethod fetch(*args, **kwargs)[source]
classmethod get_triggers(start, end, channel, dqflag, verbose=True, **kwargs)[source]

Obtain omicron triggers to run gravityspy on

Parameters:

start (int): start of time to look for triggers end (int): end time to look for triggers channel (str): channel to look for triggers dqflag (str): name of segment during which to keep triggers
Returns:
Events table
classmethod read(*args, **kwargs)[source]

Classify triggers in this table

Parameters:
gwpy.table.GravitySpyTable
Returns:
Events table
to_sql(table='glitches_v2d0', engine=None, **kwargs)[source]

Obtain omicron triggers to run gravityspy on

Parameters:
table (str): name of SQL table
update_scores(path_to_cnn, nproc=1, **kwargs)[source]

Obtain omicron triggers to run gravityspy on

Parameters:
path_to_cnn (str): filename of model
Returns:
Events table with columns containing new scores
update_sql(table='glitches_v2d0', engine=None)[source]

Obtain omicron triggers to run gravityspy on

Parameters:
table (str): name of SQL tabl
upload_to_zooniverse(subject_set_id=None)[source]

Obtain omicron triggers to run gravityspy on

Parameters:
subject_set_id (optional, int) : subject set id to upload to
Returns:
Events table
gravityspy.table.events.get_connection_str(db='gravityspy', host='gravityspy.ciera.northwestern.edu', user=None, passwd=None)[source]

Create string to pass to create_engine

gravityspy.table.events.id_generator(x, size=10, chars='ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz')[source]

Obtain omicron triggers run gravityspy on

Parameters:

x (str): the item you would like a random id to be generated for

Returns: