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

Ensure merge tables declared in new database #1205

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

samuelbray32
Copy link
Collaborator

@samuelbray32 samuelbray32 commented Jan 3, 2025

Description

Fixes #1204, #872

  • Merge tables not guaranteed to be declared before imported by their parent_source make call
    • Can cause error in fresh database when tries to declare within the make transaction
    • Done to avoid circular imports
  • Add new util declare_all_merge_tables which imports all core spyglass merge tables to ensure declaration
  • Run during populate_all_common (part of insert_sessions) to ensure tables are declared once data is in the database

Checklist:

  • N This PR should be accompanied by a release: (yes/no/unsure)
  • NA If release, I have updated the CITATION.cff
  • N This PR makes edits to table definitions: (yes/no)
  • NA If table edits, I have included an alter snippet for release notes.
  • NA If this PR makes changes to position, I ran the relevant tests locally.
  • I have updated the CHANGELOG.md with PR number and description.
  • NA I have added/edited docs/notebooks to reflect the changes

@samuelbray32 samuelbray32 marked this pull request as ready for review January 3, 2025 17:06
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.

sgi.insert_sessions failing for ImportedSpikes
1 participant