Commit 3700dcb9 authored by Alexander Pace's avatar Alexander Pace
Browse files

superevents/utils.py: one more edit for updating superevents.

parent a0decede
......@@ -125,11 +125,13 @@ def update_superevent(superevent, updater, add_log_message=True,
issue_alert=True, **kwargs):
"""
kwargs which are used as superevent parameters:
t_start, t_0, t_end, preferred_event
t_start, t_0, t_end, preferred_event,
em_type, coinc_far
"""
# Extract "updatable" superevent params from kwargs
param_names = ['t_start', 't_0', 't_end', 'preferred_event']
param_names = ['t_start', 't_0', 't_end', 'preferred_event',
'em_type','coinc_far']
new_params = {k: v for k,v in kwargs.iteritems() if k in param_names}
# Get old parameters
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment