I removed the additional module I added from this PR that contained @paulthebaker's sampler utility functions.
I've added these utilities to sampler.py. This has allowed me to remove all of the various draw_from_x functions, and instead create a loop that create jump proposals if a given signal type is found in PTA model, based on the signal types created by enterprise.
I also added automatic pulsar grouping for better sampling of pulsar-dependent parameters.
I removed the additional module I added from this PR that contained @paulthebaker's sampler utility functions.
I've added these utilities to
sampler.py.
This has allowed me to remove all of the variousdraw_from_x
functions, and instead create a loop that create jump proposals if a given signal type is found in PTA model, based on the signal types created by enterprise.I also added automatic pulsar grouping for better sampling of pulsar-dependent parameters.
Tests have been updated to reflect these changes.
TO DO:
JumpProposal
should probably be cleaned up