Skip to content
Snippets Groups Projects
Commit cbf71659 authored by Heather Fong's avatar Heather Fong Committed by Cody Messick
Browse files

inspiral_intrinsics: allow only 'template_id' or 'event_id'

parent 42abdf91
No related branches found
No related tags found
No related merge requests found
Pipeline #92001 failed
......@@ -115,10 +115,11 @@ class SourcePopulationModel(object):
coefficients = model['coefficients'].value
snr_bp = model['SNR'].value
try:
model_ids = model['event_id'].value
model_ids = model['template_id'].value
except KeyError:
# FIXME: assume sequential order if model['event_id'] doesn't exist
model_ids = numpy.arange(numpy.shape(model['coefficients'].value)[-1])
#model_ids = numpy.arange(numpy.shape(model['coefficients'].value)[-1])
model_ids = model['event_id'].value
# PPoly can construct an array of polynomials by just
# feeding it the coefficients array all in one go, but then
# it insists on evaluating all of them at once. we don't
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment