Commit 23bc864
committed
Separate generating the fiducial waveform from laying out the bins
Relative binning does both in one loop in the constructor, with the data
the bins are built from held in a local. Neither can be redone, so
anything that wants a different resolution, or a different fiducial
waveform, has to build the whole model again.
Split the loop in two. setup_fiducial generates the fiducial waveform and
leaves behind the shifted data and frequency range that the bins are laid
out from; setup_bin_layout does the laying out. Each can now be called on
its own.
No change in behaviour. Log likelihood ratios agree with what they were
to five parts in a thousand billion, the shifted data having moved from a
temporary to a kept array and so being summed in a different order.1 parent f6eaed2 commit 23bc864
1 file changed
Lines changed: 34 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
224 | 240 | | |
225 | 241 | | |
226 | 242 | | |
| |||
289 | 305 | | |
290 | 306 | | |
291 | 307 | | |
292 | | - | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
293 | 322 | | |
294 | 323 | | |
295 | 324 | | |
| |||
300 | 329 | | |
301 | 330 | | |
302 | 331 | | |
303 | | - | |
| 332 | + | |
| 333 | + | |
304 | 334 | | |
305 | 335 | | |
306 | | - | |
| 336 | + | |
307 | 337 | | |
308 | 338 | | |
309 | 339 | | |
| |||
0 commit comments