New ion channel model simulation campaign entity#540
New ion channel model simulation campaign entity#540AurelienJaquier wants to merge 13 commits intomainfrom
Conversation
|
I am having a hard time fixing these tests. May I ask your help on this please @eleftherioszisis ? |
Did you add an alembig migration? Looking at the error, it seems that there is table information missing, I think. |
|
I have been trying to do a migration, but I get an error when I do. It says there is no table for simulation_campaign_base, but that was my intent so that we use the child classes (SimulationCampaign and IonChannelModelSimulationCampaign) instead of the parent class (SimulationCampaignBase). |
|
First, could you please revert the refactoring part and focus on the new feature code? Refactoring can come in a subsequent PR. |
|
The issue is that I need the |
Instead of defining IonChannelModelSimulationCampaign and subclass SimulationCampaignBase, would the generic campaign approach work for that use case, as defined in https://github.com/openbraininstitute/prod-build-ion-channel-model/issues/85 ? |
|
@GianlucaFicarelli Yes indeed, the generic campaign approach would solve this issue. |
imo it would be better to use the generic campaign because you would need to essentially follow similar approach but only for the specialized tables you are interested in. And the migration for doing that would be quite complex. @GianlucaFicarelli has already put a lot of work in doing that in his PR. |
|
Alright, I'll be closing this then. |
Ion channel model simulations will use (almost) the same workflow as Circuit and ME-Model simulations. So it will use the same Simulation and SimulationResults entities as well as SimulationExecution and SimulationGeneration activities.
But since it can have multiple ion channel models as input, opposed to the single circuit used as input in circuit simulations, I have to create this new IonChannelModelSimulationCampaign to refflect that.
I also make entity_id in Simulation optional, since we do not need it for ion channel model simulations (we already know the ion channel models used thanks to IonChannelModelSimulationCampaign).