diff --git a/config/general.yaml b/config/general.yaml index b744e33..5121986 100644 --- a/config/general.yaml +++ b/config/general.yaml @@ -3,8 +3,6 @@ updates: iterations_per_full_update: 1e99 # Non-linear search iterations between every full update, which outputs all visuals and result fits (e.g. model.result, search.summary), this exits the search and can be slow. quick_update_background: false # If True, perform_quick_update runs on a background daemon thread so the sampler is never blocked while visuals render. Requires the Analysis subclass to set `supports_background_update = True`. live_visuac_update: false # If True, quick-update visuals are pushed to a live surface (a Jupyter cell when in a kernel, a matplotlib viewer subprocess otherwise) in addition to being written to disk. -fits: - flip_for_ds9: true psf: use_fft_default: true # If True, PSFs are convolved using FFTs by default, which is faster and uses less memory in all cases except for very small PSFs, False uses direct convolution. grid: diff --git a/config/priors/light/linear/chameleon.yaml b/config/priors/light/linear/chameleon.yaml deleted file mode 100644 index d5aa1b2..0000000 --- a/config/priors/light/linear/chameleon.yaml +++ /dev/null @@ -1,106 +0,0 @@ -Chameleon: - centre_0: - type: Gaussian - mean: 0.0 - sigma: 0.3 - width_modifier: - type: Absolute - value: 0.05 - limits: - lower: -inf - upper: inf - centre_1: - type: Gaussian - mean: 0.0 - sigma: 0.3 - width_modifier: - type: Absolute - value: 0.05 - limits: - lower: -inf - upper: inf - core_radius_0: - type: Uniform - lower_limit: 0.0 - upper_limit: 30.0 - width_modifier: - type: Absolute - value: 0.3 - limits: - lower: 0.0 - upper: inf - core_radius_1: - type: Uniform - lower_limit: 0.0 - upper_limit: 30.0 - width_modifier: - type: Absolute - value: 0.3 - limits: - lower: 0.0 - upper: inf - ell_comps_0: - type: TruncatedGaussian - mean: 0.0 - sigma: 0.3 - lower_limit: -1.0 - upper_limit: 1.0 - width_modifier: - type: Absolute - value: 0.2 - limits: - lower: -1.0 - upper: 1.0 - ell_comps_1: - type: TruncatedGaussian - mean: 0.0 - sigma: 0.3 - lower_limit: -1.0 - upper_limit: 1.0 - width_modifier: - type: Absolute - value: 0.2 - limits: - lower: -1.0 - upper: 1.0 -ChameleonSph: - centre_0: - type: Gaussian - mean: 0.0 - sigma: 0.3 - width_modifier: - type: Absolute - value: 0.05 - limits: - lower: -inf - upper: inf - centre_1: - type: Gaussian - mean: 0.0 - sigma: 0.3 - width_modifier: - type: Absolute - value: 0.05 - limits: - lower: -inf - upper: inf - core_radius_0: - type: Uniform - lower_limit: 0.0 - upper_limit: 30.0 - width_modifier: - type: Absolute - value: 0.3 - limits: - lower: 0.0 - upper: inf - core_radius_1: - type: Uniform - lower_limit: 0.0 - upper_limit: 30.0 - width_modifier: - type: Absolute - value: 0.3 - limits: - lower: 0.0 - upper: inf diff --git a/config/priors/light/linear/eff.yaml b/config/priors/light/linear/eff.yaml deleted file mode 100644 index 325eb2e..0000000 --- a/config/priors/light/linear/eff.yaml +++ /dev/null @@ -1,106 +0,0 @@ -ElsonFreeFall: - centre_0: - type: Gaussian - mean: 0.0 - sigma: 0.3 - width_modifier: - type: Absolute - value: 0.05 - limits: - lower: -inf - upper: inf - centre_1: - type: Gaussian - mean: 0.0 - sigma: 0.3 - width_modifier: - type: Absolute - value: 0.05 - limits: - lower: -inf - upper: inf - effective_radius: - type: Uniform - lower_limit: 0.0 - upper_limit: 30.0 - width_modifier: - type: Relative - value: 1.0 - limits: - lower: 0.0 - upper: inf - ell_comps_0: - type: TruncatedGaussian - mean: 0.0 - sigma: 0.3 - lower_limit: -1.0 - upper_limit: 1.0 - width_modifier: - type: Absolute - value: 0.2 - limits: - lower: -1.0 - upper: 1.0 - ell_comps_1: - type: TruncatedGaussian - mean: 0.0 - sigma: 0.3 - lower_limit: -1.0 - upper_limit: 1.0 - width_modifier: - type: Absolute - value: 0.2 - limits: - lower: -1.0 - upper: 1.0 - eta: - type: Uniform - lower_limit: 0.5 - upper_limit: 3.0 - width_modifier: - type: Absolute - value: 1.5 - limits: - lower: 0.0 - upper: 5.0 -ElsonFreeFallSph: - centre_0: - type: Gaussian - mean: 0.0 - sigma: 0.3 - width_modifier: - type: Absolute - value: 0.05 - limits: - lower: -inf - upper: inf - centre_1: - type: Gaussian - mean: 0.0 - sigma: 0.3 - width_modifier: - type: Absolute - value: 0.05 - limits: - lower: -inf - upper: inf - effective_radius: - type: Uniform - lower_limit: 0.0 - upper_limit: 30.0 - width_modifier: - type: Relative - value: 1.0 - limits: - lower: 0.0 - upper: inf - eta: - type: Uniform - lower_limit: 0.5 - upper_limit: 3.0 - width_modifier: - type: Absolute - value: 1.5 - limits: - lower: 0.0 - upper: 5.0 diff --git a/config/priors/light/linear_operated/gaussian.yaml b/config/priors/light/linear_operated/gaussian.yaml index ff5544c..e6ee9de 100644 --- a/config/priors/light/linear_operated/gaussian.yaml +++ b/config/priors/light/linear_operated/gaussian.yaml @@ -53,13 +53,3 @@ Gaussian: limits: lower: -1.0 upper: 1.0 - intensity: - type: LogUniform - lower_limit: 1.0e-06 - upper_limit: 1000000.0 - width_modifier: - type: Relative - value: 0.5 - limits: - lower: 0.0 - upper: inf diff --git a/config/priors/light/operated/sersic.yaml b/config/priors/light/operated/sersic.yaml index 7279c95..04a692e 100644 --- a/config/priors/light/operated/sersic.yaml +++ b/config/priors/light/operated/sersic.yaml @@ -1,4 +1,4 @@ -ersic: +Sersic: centre_0: type: Gaussian mean: 0.0 diff --git a/config/priors/mass/dark/nfw_truncated_mcr.yaml b/config/priors/mass/dark/nfw_truncated_mcr.yaml index 667c798..6c2d1e8 100644 --- a/config/priors/mass/dark/nfw_truncated_mcr.yaml +++ b/config/priors/mass/dark/nfw_truncated_mcr.yaml @@ -100,64 +100,3 @@ NFWTruncatedMCRLudlowSph: limits: lower: 0.0 upper: inf -NFWTruncatedMCRScatterLudlowSph: - centre_0: - type: Gaussian - mean: 0.0 - sigma: 0.1 - width_modifier: - type: Absolute - value: 0.05 - limits: - lower: -inf - upper: inf - centre_1: - type: Gaussian - mean: 0.0 - sigma: 0.1 - width_modifier: - type: Absolute - value: 0.05 - limits: - lower: -inf - upper: inf - mass_at_200: - type: LogUniform - lower_limit: 100000000.0 - upper_limit: 1000000000000000.0 - width_modifier: - type: Relative - value: 0.5 - limits: - lower: 0.0 - upper: inf - redshift_object: - type: Uniform - lower_limit: 0.0 - upper_limit: 1.0 - width_modifier: - type: Relative - value: 0.5 - limits: - lower: 0.0 - upper: inf - redshift_source: - type: Uniform - lower_limit: 0.0 - upper_limit: 1.0 - width_modifier: - type: Relative - value: 0.5 - limits: - lower: 0.0 - upper: inf - scatter_sigma: - type: Gaussian - mean: 0.0 - sigma: 3.0 - width_modifier: - type: Absolute - value: 1.0 - limits: - lower: -inf - upper: inf diff --git a/config/priors/mass/dark/nfw_truncated_mcr_scatter.yaml b/config/priors/mass/dark/nfw_truncated_mcr_scatter.yaml new file mode 100644 index 0000000..1aa55e2 --- /dev/null +++ b/config/priors/mass/dark/nfw_truncated_mcr_scatter.yaml @@ -0,0 +1,61 @@ +NFWTruncatedMCRScatterLudlowSph: + centre_0: + type: Gaussian + mean: 0.0 + sigma: 0.1 + width_modifier: + type: Absolute + value: 0.05 + limits: + lower: -inf + upper: inf + centre_1: + type: Gaussian + mean: 0.0 + sigma: 0.1 + width_modifier: + type: Absolute + value: 0.05 + limits: + lower: -inf + upper: inf + mass_at_200: + type: LogUniform + lower_limit: 100000000.0 + upper_limit: 1000000000000000.0 + width_modifier: + type: Relative + value: 0.5 + limits: + lower: 0.0 + upper: inf + redshift_object: + type: Uniform + lower_limit: 0.0 + upper_limit: 1.0 + width_modifier: + type: Relative + value: 0.5 + limits: + lower: 0.0 + upper: inf + redshift_source: + type: Uniform + lower_limit: 0.0 + upper_limit: 1.0 + width_modifier: + type: Relative + value: 0.5 + limits: + lower: 0.0 + upper: inf + scatter_sigma: + type: Gaussian + mean: 0.0 + sigma: 3.0 + width_modifier: + type: Absolute + value: 1.0 + limits: + lower: -inf + upper: inf diff --git a/config/priors/mass/stellar/sersic_core.yaml b/config/priors/mass/stellar/sersic_core.yaml index 9bb1890..cdc2218 100644 --- a/config/priors/mass/stellar/sersic_core.yaml +++ b/config/priors/mass/stellar/sersic_core.yaml @@ -65,13 +65,10 @@ SersicCore: upper: inf alpha: type: Constant - value: 3.0 + value: 3.0 gamma: type: Constant value: 0.25 - radius_break: - type: Constant - value: 0.025 mass_to_light_ratio: type: LogUniform lower_limit: 1.0e-06 @@ -142,16 +139,6 @@ SersicCoreSph: limits: lower: 0.0 upper: inf - mass_to_light_ratio: - type: LogUniform - lower_limit: 1.0e-06 - upper_limit: 1000000.0 - width_modifier: - type: Relative - value: 0.3 - limits: - lower: 0.0 - upper: inf radius_break: type: Constant value: 0.025 diff --git a/config/priors/mesh/README.md b/config/priors/mesh/README.md index ac0d7fc..78e5f03 100644 --- a/config/priors/mesh/README.md +++ b/config/priors/mesh/README.md @@ -1,3 +1,3 @@ The `mesh` folder contains configuration files for the default priors assumed for `mesh` objects. -These model components reconstruct a galaxy's emission using a rectangular grid, Delaunay triangulation or Voronoi mesh. +These model components reconstruct a galaxy's emission using a rectangular grid or Delaunay triangulation. diff --git a/config/priors/point_sources.yaml b/config/priors/point_sources.yaml index b589b2f..ee3763c 100644 --- a/config/priors/point_sources.yaml +++ b/config/priors/point_sources.yaml @@ -50,24 +50,3 @@ PointFlux: limits: lower: 0.0 upper: inf -PointSourceChi: - centre_0: - type: Gaussian - mean: 0.0 - sigma: 0.3 - width_modifier: - type: Absolute - value: 0.05 - limits: - lower: -inf - upper: inf - centre_1: - type: Gaussian - mean: 0.0 - sigma: 0.3 - width_modifier: - type: Absolute - value: 0.05 - limits: - lower: -inf - upper: inf diff --git a/config/visualize/plots_search.yaml b/config/visualize/plots_search.yaml index 0915cfb..d1a7bb6 100644 --- a/config/visualize/plots_search.yaml +++ b/config/visualize/plots_search.yaml @@ -1,26 +1,11 @@ -dynesty: - cornerplot: true # Output Dynesty cornerplot figure during a non-linear search fit? - cornerpoints: false # Output Dynesty cornerpoints figure during a non-linear search fit? - runplot: true # Output Dynesty runplot figure during a non-linear search fit? - traceplot: true # Output Dynesty traceplot figure during a non-linear search fit? -emcee: - corner: true # Output Emcee corner figure during a non-linear search fit? - likelihood_series: true # Output Emcee likelihood series figure during a non-linear search fit? - time_series: true # Output Emcee time series figure during a non-linear search fit? - trajectories: true # Output Emcee trajectories figure during a non-linear search fit? -nautilus: - cornerplot: true # Output Nautilus cornerplot figure during a non-linear search fit? -pyswarms: - contour: true # Output PySwarms contour figure during a non-linear search fit? - cost_history: true # Output PySwarms cost_history figure during a non-linear search fit? - time_series: true # Output PySwarms time_series figure during a non-linear search fit? - trajectories: true # Output PySwarms trajectories figure during a non-linear search fit? -ultranest: - cornerplot: true # Output Ultranest cornerplot figure during a non-linear search fit? - runplot: true # Output Ultranest runplot figure during a non-linear search fit? - traceplot: true # Output Ultranest traceplot figure during a non-linear search fit? -zeus: - corner: true # Output Zeus corner figure during a non-linear search fit? - likelihood_series: true # Output Zeus likelihood series figure during a non-linear search fit? - time_series: true # Output Zeus time series figure during a non-linear search fit? - trajectories: true # Output Zeus trajectories figure during a non-linear search fit? \ No newline at end of file +nest: + corner_anesthetic: true # Output corner figure (using anestetic) during a non-linear search fit? + corner_anesthetic_components: true # Also output one corner figure per top-level model component (e.g. per galaxy), each named corner_anesthetic_? Follows corner_anesthetic when absent. + corner_anesthetic_latent: false # Output a corner figure of the latent parameters (e.g. a shear's magnitude and angle rather than gamma_1 / gamma_2), named corner_anesthetic_latent? Independent of the two above. Made after the fit like latent.csv (during it only if output.yaml's latent_during_fit is on). + corner_anesthetic_latent_components: true # With corner_anesthetic_latent, also output one latent corner figure per top-level component that has a latent parameter, each named corner_anesthetic_latent_? Follows corner_anesthetic_latent when absent. +mcmc: + corner_cornerpy: true # Output corner figure (using corner.py) during a non-linear search fit? +mle: + subplot_parameters: true # Output a subplot of the best-fit parameters of the model? + log_likelihood_vs_iteration: true # Output a plot of the log likelihood versus iteration number? + figure_of_merit_vs_iteration: true # Output the global-best figure-of-merit trace (auto-convergence gradient searches)?