Commit 3493fab
update: chromatic noise models & feat: hypermodel empirical distributions (#242)
* Added sunssb calculatin to theta impact.
* added to theta_impact docstring
* Added sunssb arg to functions.
* Added sunssb arg to solar_wind
* Added sunssb arg to create_fourier_designmatrix_sw
* Added dm_solar_wind_r_to_p
* Added flag to be able to use log10_ne
* Added flag to model2a, model3a, modelgen to turn off rn model.
* Merged with master 2.
* Added option for dropout of intrinsic red noise.
* Added dropout params to docstring
* More merging
* More merging
* More merging
* No changes.
* space deletion
* Tweaks to WN model for CHIME ECORR
* Adding option to set dt for linear_interp_basis in single_pulsar_model for dm_gp and chrom_gp
* Fixed syntax
* Update binned sw model.
* Update binned sw model 2.
* Update binned sw model 3.
* Update binned sw model 4.
* Update binned sw model 5.
* Update binned sw model 6.
* Update binned sw model 7.
* Update binned sw model 8.
* Update binned sw model 9.
* Added combine flag to red noise blocks
* set zero to 1e-40
* Added model 4a
* fixed typo with rn in model general
* fixed typo with ss in model general
* fix typ in chromatic blk
* fix typ in chromatic blk
* adding broken powerlaw to model_general
* fix delta_common flag
* more conflict resolution
* fix merge conflict common_red
* add gw_crn to sampler flags
* fix sampler issue
* fixed broken power law
* make fbend prior based on Tspan
* added general linear interpolant basis
* further tweaks to general linear inter
* change names in model_general
* added white noise dropout models
* fixed variables
* add cov.npy load in
* small tweaks to cusp model
* starting to add new emp dist jump prop
* playing with new jump proposal
* small work on jp
* adding pulsar based jump props
* adding pulsar based jump props 2
* fix psr emp dist jp
* fix psr emp dist jp 2
* adding new chromatic gp JP
* revert to standard dropout_rn
* up the coverage
* adding pulsars with sunssb attr
* various solar wind upgrades
* linting
* tests for new solar wind functions
* fix to signal
* rm wn_dropout to another branch
* linting
* matching WN models
* multiple dt definitions
* rm names from docstring
* multiple dt definitions
* f bend frequency range
* added option for tnequad, default t2equad
* move to enterprise-v3.3.0 for T2EQUAD support
* added vary flag for DM and chrom models
* added vary flag to annual dm sinusoid
* fixing gw log uniform draw for models with size!=0
* raise lower prior on periodic log10_p
* tweak priors on chrom gp params
* tweak priors on chrom gp params 2
* tweak to auto jump proposals dm_gp
* adding joe's fix
* added checks for fixed point
* const dmgp fix for jump proposals additions
* fix elif in chromatic block for fixed point
* adding Nfreqs options for freq DM/Chrom GP
* add varying chromatic index ability
* move chromatic modeling out of dm
* edit docstring
* change docstring
* fix typo
* add Tspan kwarg to dmgp and chromgp
* add ridge prior dmx-like GP to chromatic GP block
* added chrom_gp to setup sampler JP auto adds
* adding the ridge rename
* starting the custom jump proposal for HM empirical distribution
* hm emp distr JP
* hm emp bug fixes
* tryna fix da hypermodel
* closing bracket
* closing bracket correctly
* closing next bracket
* another fix for the for loop
* another fix for the for loop2
* changed it in lnprior too
* tryna rename ridge pt 2
* yonk
* yonk
* fixing some broken things
* automatically save hm weights to chain directory
* just a comment
* changing jump prop
* adding bjorns changes to move the log_weights to the PRIOR instead of the lnlike in order to not bias the PTMCMC
* fixing something in the print for hypermodel weights
* add: add gp_ecorr kwarg to model single puslar noise
* reformat: used black on sampler.py
* Revert "reformat: used black on sampler.py"
This reverts commit 33d2b26.
* reformat: passing flake for sampler.py
* reformat: update code to pass flake8 for blocks.py
* reformat: update code to pass flake8 for chromatic.py
* reformat: update code so that hypermodel.py is passing flake8
* reformat: update code so that models.py is passing flake8
* update tests: updated the tests so that less tests will be breaking
* add kwarg: added variable upper prior limit to chrom_gp_idx. default is to 7.
* add kwarg: added variable upper prior limit to chrom_gp_idx. default is to 7.
* fixed linting
* add VEGAS to channelized backends
* tests: add and fix tests; mend blocks accordingly
* fix: add maximum scipy to avoid deprecation error in tests
* update: update ci_test.yml
* add Nitu+2024 SW model + test
* attempt to fix accidental undoing of changes to gp_kernels and tests
* linting, imports
* fixed bug in gp_ecorr kwarg
* Update setup.py
Add the limit on the `scipy` version
* changing gp ecorr to be false by default
* 500-->50000
* remove upper bound on scipy requirements
* fix deprecation warning in pytests
* add partial caching of the chromatic fourier designmatrix, tests
* attemping to lint w/ copilot
* copilot got most of the way there
* refactor solar wind noise block
* make sure solar_wind is visible when importing chromatic module
* error handling for missing swgp basis
* allow option to vary swgp or hold its hyperparams fixed
* model_utils update: fix underscore in mask_filter
* changing solar wind prior
* bug fix in the solar wind block. components should be 2 in the powerlaw prior -- not the number of fourier modes
* flake
* bug fix: fix things which were borked in the tests
* address paul baker's comments on the MR
* fix prior draws
* lint
* fix double chromatic noise block in model single pulsar noise
* add idx as a constant parameter in chromatic noise block so that it gets logged to the PTA summary
* update sw block in model single puslar noise; add better doc strings to sw nosie block
* fix tests for solar wind block and model single pulsar noise
* fix test to use const.yr
---------
Co-authored-by: Hazboun6 <jeffrey.hazboun@gmail.com>
Co-authored-by: Joseph Simon <joseph.simon@pcdev3.nemo.uwm.edu>
Co-authored-by: Jeremy Baier <baierj@rogue.tail1dab3.ts.net>
Co-authored-by: Bjorn Larsen <bjorn.larsen@yale.edu>
Co-authored-by: Jeremy Baier <jeremybaier@nanograv.org>1 parent 4e1ce07 commit 3493fab
11 files changed
Lines changed: 887 additions & 349 deletions
File tree
- enterprise_extensions
- chromatic
- tests
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
237 | 239 | | |
238 | 240 | | |
239 | 241 | | |
240 | | - | |
| 242 | + | |
241 | 243 | | |
242 | 244 | | |
243 | 245 | | |
| |||
249 | 251 | | |
250 | 252 | | |
251 | 253 | | |
| 254 | + | |
252 | 255 | | |
253 | 256 | | |
254 | 257 | | |
255 | 258 | | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
260 | 269 | | |
| 270 | + | |
| 271 | + | |
261 | 272 | | |
262 | 273 | | |
263 | | - | |
| 274 | + | |
264 | 275 | | |
| 276 | + | |
| 277 | + | |
265 | 278 | | |
266 | 279 | | |
267 | 280 | | |
| |||
275 | 288 | | |
276 | 289 | | |
277 | 290 | | |
278 | | - | |
| 291 | + | |
279 | 292 | | |
280 | 293 | | |
281 | 294 | | |
| |||
288 | 301 | | |
289 | 302 | | |
290 | 303 | | |
| 304 | + | |
291 | 305 | | |
292 | 306 | | |
293 | 307 | | |
294 | 308 | | |
295 | | - | |
296 | | - | |
297 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
298 | 317 | | |
299 | | - | |
| 318 | + | |
300 | 319 | | |
| 320 | + | |
| 321 | + | |
301 | 322 | | |
302 | 323 | | |
303 | | - | |
| 324 | + | |
304 | 325 | | |
| 326 | + | |
| 327 | + | |
305 | 328 | | |
306 | 329 | | |
307 | 330 | | |
308 | | - | |
| 331 | + | |
309 | 332 | | |
| 333 | + | |
| 334 | + | |
310 | 335 | | |
311 | 336 | | |
312 | 337 | | |
| |||
323 | 348 | | |
324 | 349 | | |
325 | 350 | | |
326 | | - | |
| 351 | + | |
327 | 352 | | |
328 | 353 | | |
329 | 354 | | |
| |||
336 | 361 | | |
337 | 362 | | |
338 | 363 | | |
| 364 | + | |
339 | 365 | | |
340 | 366 | | |
341 | 367 | | |
342 | 368 | | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
348 | 381 | | |
349 | | - | |
| 382 | + | |
350 | 383 | | |
351 | | - | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
352 | 387 | | |
353 | | - | |
| 388 | + | |
354 | 389 | | |
| 390 | + | |
| 391 | + | |
355 | 392 | | |
356 | 393 | | |
357 | 394 | | |
358 | 395 | | |
359 | | - | |
| 396 | + | |
360 | 397 | | |
361 | 398 | | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
362 | 402 | | |
363 | 403 | | |
364 | 404 | | |
| |||
378 | 418 | | |
379 | 419 | | |
380 | 420 | | |
381 | | - | |
| 421 | + | |
382 | 422 | | |
383 | 423 | | |
384 | 424 | | |
385 | 425 | | |
386 | 426 | | |
| 427 | + | |
387 | 428 | | |
388 | 429 | | |
389 | 430 | | |
390 | 431 | | |
391 | 432 | | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
401 | 447 | | |
402 | 448 | | |
403 | 449 | | |
404 | 450 | | |
405 | 451 | | |
406 | 452 | | |
407 | | - | |
| 453 | + | |
408 | 454 | | |
409 | 455 | | |
410 | 456 | | |
| |||
414 | 460 | | |
415 | 461 | | |
416 | 462 | | |
| 463 | + | |
417 | 464 | | |
418 | 465 | | |
419 | 466 | | |
420 | 467 | | |
421 | | - | |
422 | | - | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
423 | 474 | | |
424 | 475 | | |
425 | 476 | | |
426 | 477 | | |
427 | 478 | | |
428 | 479 | | |
429 | 480 | | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
0 commit comments