Skip to content

Conversation

@weiglszonja
Copy link
Member

This is a temporary PR to solve the ingestion of trials from NWB into Spyglass

  • extensions/common_trials.py: Added the Trials table to store trial intervals extracted from NWB files. Each entry represents a trial with its start and stop times as a numpy array. Includes a method to process NWB files and insert trial data into the table.

  • insert/insert_trials.py: Added functions to insert session and trial interval data into the Spyglass database. Includes methods for clearing existing data, inserting sessions, and validating trial intervals against the original NWB file.

  • mock/mock_trials_nwbfile.py: Added a script to generate mock NWB files with trial data for testing purposes. Includes functionality to add trials and a processing module required by Spyglass.

@weiglszonja
Copy link
Member Author

FYI @alessandratrapani

@weiglszonja weiglszonja marked this pull request as draft July 8, 2025 12:30
@alessandratrapani alessandratrapani self-assigned this Jul 10, 2025
@weiglszonja
Copy link
Member Author

This PR should be closed after LorenFrankLab/spyglass#1349 is merged

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.

3 participants