Calibration reweighting broken in v2.0.0
I've been using calibration reweighting for the O4 sampler review but after updating to version 2.0.0 the same submit files are all failing with the same error:
00:48 bilby_pipe INFO : Using conversion_function convert_to_lal_binary_black_hole_parameters
00:48 bilby INFO : Waveform generator initiated with
frequency_domain_source_model: bilby.gw.source.lal_binary_black_hole_relative_binning
time_domain_source_model: None
parameter_conversion: bilby.gw.conversion.convert_to_lal_binary_black_hole_parameters
00:48 bilby INFO : Initial fiducial waveforms set up
00:48 bilby INFO : Summary Data Obtained
00:48 bilby INFO : Fiducial likelihood: 140.29
00:48 bilby_pipe INFO : Setting likelihood_type to bilby.gw.likelihood.GravitationalWaveTransient for reweighting
00:48 bilby_pipe INFO : Setting frequency_domain_source_model to bilby.gw.source.lal_binary_black_hole for reweighting
00:48 bilby_pipe INFO : Setting waveform_approximant to IMRPhenomXHM for reweighting
00:48 bilby_pipe INFO : Setting calibration_marginalization to True for reweighting
00:48 bilby_pipe INFO : Using conversion_function convert_to_lal_binary_black_hole_parameters
00:48 bilby INFO : Waveform generator initiated with
frequency_domain_source_model: bilby.gw.source.lal_binary_black_hole
time_domain_source_model: None
parameter_conversion: bilby.gw.conversion.convert_to_lal_binary_black_hole_parameters
Traceback (most recent call last):
File "/local/condor/execute/dir_1296496/condor_exec.exe", line 8, in <module>
sys.exit(main())
File "/home/michael.williams/.conda/envs/nessai-gwtc/lib/python3.9/site-packages/bilby_pipe/data_analysis.py", line 385, in main
analysis.reweight_result()
File "/home/michael.williams/.conda/envs/nessai-gwtc/lib/python3.9/site-packages/bilby_pipe/data_analysis.py", line 330, in reweight_result
likelihood, priors = self.get_likelihood_and_priors_for_reweighting()
File "/home/michael.williams/.conda/envs/nessai-gwtc/lib/python3.9/site-packages/bilby_pipe/data_analysis.py", line 306, in get_likelihood_and_priors_for_reweighting
likelihood = self.likelihood
File "/home/michael.williams/.conda/envs/nessai-gwtc/lib/python3.9/site-packages/bilby_pipe/input.py", line 1165, in likelihood
likelihood = Likelihood(**likelihood_kwargs)
File "/home/michael.williams/.conda/envs/nessai-gwtc/lib/python3.9/site-packages/bilby/gw/likelihood/base.py", line 207, in __init__
self._setup_calibration_marginalization(calibration_lookup_table, priors)
File "/home/michael.williams/.conda/envs/nessai-gwtc/lib/python3.9/site-packages/bilby/gw/likelihood/base.py", line 987, in _setup_calibration_marginalization
self.calibration_draws, self.calibration_parameter_draws = calibration.build_calibration_lookup(
File "/home/michael.williams/.conda/envs/nessai-gwtc/lib/python3.9/site-packages/bilby/gw/detector/calibration.py", line 373, in build_calibration_lookup
draws[name], parameters[name] = _generate_calibration_draws(
File "/home/michael.williams/.conda/envs/nessai-gwtc/lib/python3.9/site-packages/bilby/gw/detector/calibration.py", line 399, in _generate_calibration_draws
n_points=interferometer.calibration_model.n_points,
AttributeError: 'Recalibrate' object has no attribute 'n_points'
Here's an example nessai run that broke: https://ldas-jobs.ligo.caltech.edu/~michael.williams/bilby-dev/bilby-pipe/calibration-reweighting/outdir_cal_reweight_v2.0.
I tried doing the same with dynesty but I didn't sample: https://ldas-jobs.ligo.caltech.edu/~michael.williams/bilby-dev/bilby-pipe/calibration-reweighting/outdir_cal_reweight_dynesty_v2.0.0/