Skip to content

Fix refractory handling scope in collect_Events #59

Open
Akshat1000Sharma wants to merge 2 commits intobrian-team:masterfrom
Akshat1000Sharma:fix-collect-events-refractory
Open

Fix refractory handling scope in collect_Events #59
Akshat1000Sharma wants to merge 2 commits intobrian-team:masterfrom
Akshat1000Sharma:fix-collect-events-refractory

Conversation

@Akshat1000Sharma
Copy link

Move refractory logic inside the event loop so it is evaluated per event instead of after loop completion.

Previously, refractory metadata was attached based on the final loop variable value, causing incorrect behavior when multiple events were present. The update ensures refractory handling is applied only when the current event is 'spike' and avoids reliance on out-of-scope loop variables.

This maintains correct behavior with mixed/multiple events and improves code clarity.
Fixed Issue #57

Move refractory logic inside the event loop so it is evaluated per event instead of after loop completion.

Previously, refractory metadata was attached based on the final loop variable value, causing incorrect behavior when multiple events were present. The update ensures refractory handling is applied only when the current event is 'spike' and avoids reliance on out-of-scope loop variables.

This maintains correct behavior with mixed/multiple events and improves code clarity.
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