agencyenterprise / neural-data-simulator

Electrophysiology data simulator for developing brain-computer interfaces
https://agencyenterprise.github.io/neural-data-simulator/
Apache License 2.0
71 stars 7 forks source link

Fix CircularDeque append check #28

Closed eudesf closed 1 year ago

eudesf commented 1 year ago

Introduction

The CircularDeque is holding an additional element, which exceeds the intended number of elements it should contain. This issue causes the is_full method to incorrectly return False even when the deque is already full.

Changes

Fixes the number of elements condition.

Behavior

The fix ensures that the CircularDeque accurately maintains the intended number of elements and correctly reports if it is full or not.