Skip to content

Add recording_arrays relationship to Simulation - #689

Merged
eleftherioszisis merged 1 commit into
mainfrom
add-simulation-recording-arrays
Jul 31, 2026
Merged

Add recording_arrays relationship to Simulation#689
eleftherioszisis merged 1 commit into
mainfrom
add-simulation-recording-arrays

Conversation

@eleftherioszisis

Copy link
Copy Markdown
Contributor

Summary

  • Adds a many-to-many recording_arrays relationship on Simulation linking to SimulatableExtracellularRecordingArray via a new junction table.
  • Wires create/update schemas, nested association logic, service load path, and migration.
  • Enables entitysdk.stage_simulation to discover and stage electrode_array_weight_matrix assets.

Closes #680

Test plan

  • test_create_one verifies empty recording_arrays by default
  • test_create_one_with_recording_arrays verifies association with 2 arrays
  • All 56 simulation-related tests pass

@codecov

codecov Bot commented Jul 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
pytest 97.86% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
app/db/model.py 99.15% <100.00%> (+<0.01%) ⬆️
app/queries/constants.py 100.00% <ø> (ø)
app/schemas/simulation.py 100.00% <100.00%> (ø)
app/service/simulation.py 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@eleftherioszisis
eleftherioszisis marked this pull request as ready for review July 29, 2026 08:49
@eleftherioszisis eleftherioszisis self-assigned this Jul 29, 2026

@james-isbister james-isbister left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, but I'll let @GianlucaFicarelli review the details

@GianlucaFicarelli GianlucaFicarelli left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

Relates a Simulation to the SimulatableExtracellularRecordingArray(s) it
records with via a many-to-many junction table, enabling entitysdk to
stage the electrode_array_weight_matrix assets appropriately.

Closes #680
@eleftherioszisis
eleftherioszisis force-pushed the add-simulation-recording-arrays branch from ec62603 to 11b3c07 Compare July 31, 2026 11:22
@eleftherioszisis
eleftherioszisis merged commit e86227a into main Jul 31, 2026
2 checks passed
@eleftherioszisis
eleftherioszisis deleted the add-simulation-recording-arrays branch July 31, 2026 11:35
GianlucaFicarelli added a commit that referenced this pull request Jul 31, 2026
* origin/main:
  Add recording_arrays relationship to Simulation (#689)
GianlucaFicarelli added a commit that referenced this pull request Jul 31, 2026
* origin/main:
  Use a rollback strategy with single engine in tests (#683)
  Add release and deploy workflows to agent rules (#692)
  Add recording_arrays relationship to Simulation (#689)
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.

Relate a Simulation to the SimulatableExtracellularRecordingArray(s) it records with

3 participants