Skip to content

Log scat scale added#8

Merged
asgr merged 6 commits into
mainfrom
log_scat_scale_added
Jul 7, 2026
Merged

Log scat scale added#8
asgr merged 6 commits into
mainfrom
log_scat_scale_added

Conversation

@asgr

@asgr asgr commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Based partly on the un-merged PR copilot/add-offset-list-support I have re-implemented support for offset_list and more importantly log_scat_scale. The latter works closely in tandem with recent updates to ICRAR/ProFit (particularly the profitLikeModel function), since we need some special handling when dealing with the log_scat_scale hyper-parameter since it is not strictly of parameter of ProFit or ProSpect, but a direct modification to how we infer data-model likelihoods. It is meant to allow better posterior sampling in cases of under and over-fitting models, which can be common in astronomy images due to residual features like spiral arms and bars etc.

Copilot AI review requested due to automatic review settings July 1, 2026 09:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds end-to-end plumbing for a log_scat_scale hyper-parameter (and reintroduces per-image/band offsets) so likelihood evaluation can be modified to improve posterior sampling behavior in under/over-dispersed image fits.

Changes:

  • Adds log_scat_scale argument propagation into profitSetupData() for single-image, multi-image, and multi-band fitting entry points.
  • Re-implements/extends per-band offset_list handling in profuseMultiBandFound2Fit() with validation and forwards offsets into profitSetupData().
  • Updates multi-band bounds construction to account for log_scat_scale, and updates Rd docs for offset_list.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
R/profuseSingleImage.R Adds log_scat_scale arg and forwards it into profitSetupData() for single-image setup.
R/profuseMultiImage.R Adds log_scat_scale arg and forwards it into profuseFound2Fit() for each image.
R/profuseMultiBand.R Adds log_scat_scale + offset_list, validates offsets, forwards both into profitSetupData(), and adjusts bounds construction.
man/profuseMultiBand.Rd Documents offset_list (but currently missing log_scat_scale in usage/arguments).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread R/profuseMultiBand.R Outdated
Comment thread man/profuseMultiBand.Rd Outdated
Comment on lines 19 to 22
fit_rough = FALSE, psf_dim = c(51, 51), star_con = 2, star_con_fit = TRUE,
star_circ = TRUE, tightcrop = TRUE, wave = NULL, smooth.parm = NULL,
star_circ = TRUE, offset_list = NULL, tightcrop = TRUE, wave = NULL, smooth.parm = NULL,
parm_ProSpect = NULL, data_ProSpect = NULL, logged_ProSpect = NULL,
intervals_ProSpect = NULL, autoclip = TRUE, roughpedestal = TRUE, ...)
Comment thread man/profuseMultiBand.Rd
@asgr asgr merged commit 64decc4 into main Jul 7, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants