NameError: global name 'f' is not defined
It looks like there were at least two bugs picked up by this commit:
that are breaking the offline pipeline. The traceback (from https://git.ligo.org/lscsoft/gstlal/-/jobs/214114) is:
File "/builds/lscsoft/gstlal/opt/gstlal/bin/gstlal_inspiral_create_prior_diststats", line 135, in <module>
rankingstat = far.RankingStat(template_ids = template_ids, instruments = options.instrument, delta_t = options.coincidence_threshold, min_instruments = options.min_instruments, population_model_file = options.mass_model_file)
File "/builds/lscsoft/gstlal/opt/gstlal/lib64/python2.7/site-packages/gstlal/far.py", line 135, in __init__
self.numerator = inspiral_lr.LnSignalDensity(template_ids = template_ids, instruments = instruments, delta_t = delta_t, population_model_file = population_model_file, min_instruments = min_instruments)
File "/builds/lscsoft/gstlal/opt/gstlal/lib64/python2.7/site-packages/gstlal/stats/inspiral_lr.py", line 309, in __init__
self.population_model = inspiral_intrinsics.SourcePopulationModel(self.template_ids, filename = self.population_model_file)
File "/builds/lscsoft/gstlal/opt/gstlal/lib64/python2.7/site-packages/gstlal/stats/inspiral_intrinsics.py", line 121, in __init__
model_ids = numpy.arange(1,numpy.shape(f['coefficients'].value)[-1]+1)
NameError: global name 'f' is not defined
@heather-fong , is f['coefficients'].value
supposed to be model['coefficients'].value
on line 121? I didn't want to just change the code and searching the file for f
didn't reveal anything immediately help.