Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InsufficientDataException fix #174

Merged
merged 4 commits into from
Oct 5, 2021
Merged

InsufficientDataException fix #174

merged 4 commits into from
Oct 5, 2021

Conversation

lawhead
Copy link
Collaborator

@lawhead lawhead commented Sep 24, 2021

Overview

During execution of the Copy Phrase task, the get_data_for_decision function in the task helper would sometimes throw an InsufficientDataException after querying the acquisition client for data. The client had enough data in the desired range but the timestamp alignment was slightly off. The query was modified to explicitly ask for a given number of samples.

Ticket

https://www.pivotaltracker.com/story/show/179644506

Contributions

  • Added utility methods to raw_data module to assist in debugging.
  • Modified Copy Phrase task to query the acquisition module for a given number of samples.

Test

  • The Copy Phrase task should run without throwing an InsufficientDataException

… number of samples; added utility methods to raw_data module to assist in debugging.
@lawhead lawhead requested a review from tab-cmd September 24, 2021 23:52
Copy link
Contributor

@tab-cmd tab-cmd left a comment

Choose a reason for hiding this comment

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

Thanks for the fix. I was able to calibrate and run several copy phrase sessions with the change!

@@ -13,6 +13,7 @@
from bcipy.acquisition.protocols.lsl.lsl_recorder import LslRecordingThread
from bcipy.acquisition.record import Record
from bcipy.helpers.clock import Clock
from bcipy.gui.viewer.ring_buffer import RingBuffer
Copy link
Contributor

Choose a reason for hiding this comment

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

We should move this outside of gui... not sure the best place

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed. I'll create a followup ticket for this.

@lawhead lawhead merged commit cf37c53 into 1.5.1 Oct 5, 2021
@lawhead lawhead deleted the insufficient-data-exception branch October 5, 2021 22:55
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