Skip to content

Fix: use right variable for allocating exchange matrix#47

Merged
kbno merged 2 commits into
mainfrom
bugfix/pt_exchange-fix
Apr 14, 2026
Merged

Fix: use right variable for allocating exchange matrix#47
kbno merged 2 commits into
mainfrom
bugfix/pt_exchange-fix

Conversation

@sayeg84
Copy link
Copy Markdown
Collaborator

@sayeg84 sayeg84 commented Apr 10, 2026

PR Checklist

  • Bug fix
  • [] Feature addition/change
  • [] Documentation addition/change
  • [] Test addition/change
  • [] Black formatting

Describe your changes here:

Main branch currently uses the wrong variable to allocate the size of the exchange matrix in PT. This causes the simulation to crash at the first saving attempt.

This fix uses the right variable to allocate the variable. Tested that the simulation runs and exits saving the right shapes.
.

Copy link
Copy Markdown
Collaborator

@kbno kbno left a comment

Choose a reason for hiding this comment

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

Looks good to me, I tested on my PT sims and they run, thanks for checking this!

@kbno kbno merged commit 5a53094 into main Apr 14, 2026
4 checks passed
@kbno kbno deleted the bugfix/pt_exchange-fix branch April 14, 2026 12: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