Skip to content

BUG FIX: parallel tempering swaps#14

Open
astrolamb wants to merge 2 commits intonanograv:mainfrom
astrolamb:fix/pt_swap
Open

BUG FIX: parallel tempering swaps#14
astrolamb wants to merge 2 commits intonanograv:mainfrom
astrolamb:fix/pt_swap

Conversation

@astrolamb
Copy link

@astrolamb astrolamb commented Oct 21, 2025

Logical bug found in parallel tempering swapping block. It is the same bug as was in PTMCMCSampler -- see this PR

I HAVE NOT TESTED THIS CODE. PLEASE TEST BEFORE ACCEPTING.
I'm concerned by the samples_new[j,itrb+1,:] = samples[swap_map[j],itrb,:] (Line 181) -- I assume the information in the 3rd dimension is being copied correctly, but this needs to be checked.

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.

1 participant