Skip to content

Add recording_arrays relationship to Simulation - #689

Open
eleftherioszisis wants to merge 1 commit into
mainfrom
add-simulation-recording-arrays
Open

Add recording_arrays relationship to Simulation#689
eleftherioszisis wants to merge 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

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
@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.85% <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

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

2 participants