Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ss/bugfix-2024-08 #84

Merged
merged 14 commits into from
Sep 26, 2024
Merged

ss/bugfix-2024-08 #84

merged 14 commits into from
Sep 26, 2024

Conversation

ssiegelx
Copy link

This builds on the bugfix-2024-01 branch. The primary change involves using the scaled complimentary error function instead of the error function when calculating the PBF model. This avoids problems with numerical overflow previously observed when the scattering time becomes small relative to the burst width. Before, in order to mitigate these numerical issues, we switched to using a Gaussian model for the time profile when the scattering timescale dropped below some threshold. However, due to differing normalizations between the Gaussian and PBF model, this introduced a step-like feature in the burst spectrum. Now, we are able to evaluate the PBF model directly for all scattering timescales.

Also fixes (copy-paste) errors in the calculation of the (burst_width, dm), (scattering_timescale, scattering_timescale), (burst_width, scattering_index), (scattering_index, scattering_index), and (dm, dm_index) mixed partial derivative. This will impact the calculation of the analytical hessian, and hence parameter uncertainties, for models with scattering.

emmanuelfonseca and others added 14 commits July 12, 2024 21:42
Also updates derivative evaluation and adds option to normalize
pbf model to peak value of 1 in the limit of low scattering.
Fix errors in the calculation of the (burst_width, dm) and
(scattering_timescale, scattering_timescale) mixed partial
derivative.  Impacts the calculation of the analytical hessian
for models with scattering.
Fixes bugs in the calculation of (burst_width, scattering_index),
(scattering_index, scattering_index), and (dm, dm_index).  Unlikely
to impact results since we do not usually fit for the dm_index or
scattering_index.
Only changes partial derivatives with respect to the
scattering index, which is usually not fit.
@emmanuelfonseca emmanuelfonseca merged commit d85cafa into main Sep 26, 2024
1 of 2 checks passed
@emmanuelfonseca emmanuelfonseca deleted the ss/bugfix-2024-08 branch September 26, 2024 21:37
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