Skip to content

Commit

Permalink
Fixes #1929 hill transporter issue (#1941)
Browse files Browse the repository at this point in the history
* Fixes #1929 hill transporter issue

* Using the right project
  • Loading branch information
msevestre authored Nov 3, 2021
1 parent 31a3db1 commit 30d820c
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Db/Diff/PKSimDB_diff.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
UPDATE tab_populations SET display_name='Japanese (Schlender, 2015)', description='Japanese (Schlender, 2015)' WHERE population='Japanese_Population';
UPDATE tab_populations SET display_name='Preterm (Claassen, 2015)', description='Preterm (Claassen, 2015)' WHERE population='Preterm';
INSERT INTO tab_rate_generic_parameters(calculation_method,formula_rate,path_id,parameter_name,alias) VALUES('LinksCommon','MucosaActiveInfluxFromLumen_Hill',2690,'Effective concentration in lumen','EffectiveLumenConcentration');
DELETE FROM tab_rate_generic_parameters WHERE calculation_method='LinksCommon' AND formula_rate='MucosaActiveInfluxFromLumen_Hill' AND path_id=2704 AND parameter_name='Effective concentration in lumen';
2 changes: 1 addition & 1 deletion src/Db/Dump/PKSimDB_dump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88234,7 +88234,7 @@ INSERT INTO tab_rate_generic_parameters VALUES('Lumen_PKSim','PARAM_EffectiveLum
INSERT INTO tab_rate_generic_parameters VALUES('Lumen_PKSim','PARAM_EffectiveLumenConcentration',139,'Solubility','Solubility');
INSERT INTO tab_rate_generic_parameters VALUES('Lumen_PKSim','PARAM_EffectiveLumenConcentration',140,'Liquid','Liquid');
INSERT INTO tab_rate_generic_parameters VALUES('Lumen_PKSim','PARAM_EffectiveLumenConcentration',240,'Molecular weight','MW');
INSERT INTO tab_rate_generic_parameters VALUES('LinksCommon','MucosaActiveInfluxFromLumen_Hill',2704,'Effective concentration in lumen','EffectiveLumenConcentration');
INSERT INTO tab_rate_generic_parameters VALUES('LinksCommon','MucosaActiveInfluxFromLumen_Hill',2690,'Effective concentration in lumen','EffectiveLumenConcentration');
INSERT INTO tab_rate_generic_parameters VALUES('LinksCommon','MucosaActiveInfluxFromLumen_MM',2690,'Effective concentration in lumen','EffectiveLumenConcentration');
INSERT INTO tab_rate_generic_parameters VALUES('LinksCommon','MucosaPgPToLumen_Hill',2704,'Effective concentration in lumen','EffectiveLumenConcentration');
INSERT INTO tab_rate_generic_parameters VALUES('LinksCommon','MucosaPgPToLumen_MM',2704,'Effective concentration in lumen','EffectiveLumenConcentration');
Expand Down
Binary file modified src/Db/PKSimDB.sqlite
Binary file not shown.
Binary file added tests/PKSim.Tests/Data/MucosaInflux_Hill.pksim5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace PKSim.IntegrationTests
{
public abstract class concern_for_ProcessToProcessBuilderMapper : ContextWithLoadedProject<IProcessToProcessBuilderMapper>
public abstract class concern_for_Mucosa_MultipleTransportDirections : ContextWithLoadedProject<IProcessToProcessBuilderMapper>
{
public override void GlobalContext()
{
Expand All @@ -17,7 +17,7 @@ public override void GlobalContext()
}
}

public class When_creating_a_simulation_using_transport_in_multiple_mucosa_directions : concern_for_ProcessToProcessBuilderMapper
public class When_creating_a_simulation_using_transport_in_multiple_mucosa_directions : concern_for_Mucosa_MultipleTransportDirections
{
private Simulation _simulation;

Expand All @@ -37,4 +37,36 @@ public void should_not_create_too_many_transporters()
transportInLumenToMucosa.GetChildren<IContainer>(x => x.ContainerType == ContainerType.Transport).Count().ShouldBeEqualTo(1);
}
}

public abstract class concern_for_MucosaInflux_Hill : ContextWithLoadedProject<IProcessToProcessBuilderMapper>
{
public override void GlobalContext()
{
base.GlobalContext();
LoadProject("MucosaInflux_Hill");
}
}

public class When_creating_a_simulation_using_mucosa_influx_hill_kinetic : concern_for_MucosaInflux_Hill
{
private Simulation _simulation;

protected override void Context()
{
base.Context();
var ind = FindByName<Individual>("I1");
var comp = FindByName<Compound>("C1");
var prot = FindByName<Protocol>("IV");
_simulation = DomainFactoryForSpecs.CreateSimulationWith(ind, comp, prot);

}

[Observation]
public void should_be_able_to_create_a_simulation()
{
_simulation.ShouldNotBeNull();
}
}


}

0 comments on commit 30d820c

Please sign in to comment.