Skip to content

Fix/unbinding#180

Merged
meganrm merged 3 commits intomainfrom
fix/unbinding
Feb 27, 2025
Merged

Fix/unbinding#180
meganrm merged 3 commits intomainfrom
fix/unbinding

Conversation

@meganrm
Copy link
Copy Markdown
Contributor

@meganrm meganrm commented Feb 26, 2025

Problem

Estimated review size: small

closes #176
When the app updates all the instances, it was only checking unbinding events on agents that overlapped, not ones that were perfectly bound.

Solution

call check if unbind function within step

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Steps to Verify:

  1. bun dev
  2. if you run through the activity you still get a kd of around 0.75

@meganrm meganrm requested a review from a team as a code owner February 26, 2025 06:56
@meganrm meganrm requested review from frasercl, interim17 and toloudis and removed request for a team and frasercl February 26, 2025 06:56
Comment on lines +35 to +36
kOn: 0.9,
kOff: 0.01,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

these had to be changed because the new unbinding means to have the same binding affinity the k off rate had to be a lot lower


const kds = {
[Module.A_B_AB]: 1,
[Module.A_B_AB]: 0.75,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this is a more accurate number for what gets calculated

);
if (unbindingOccurred) {
this.currentNumberOfUnbindingEvents++;
this.currentNumberBound--;
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.

is there any danger of out-of-bounds stuff happening here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not that I can think of. The currentNumberBound is used to graph the product and it’s pretty smooth and consistent. Agents never go away, there’s periodic boundary behind the edges of the viewport

@meganrm meganrm merged commit ac80178 into main Feb 27, 2025
3 checks passed
@meganrm meganrm deleted the fix/unbinding branch February 27, 2025 18:02
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.

The agents aren't unbinding as frequently as they should

3 participants