Skip to content

Commit

Permalink
use GetAllChildren of Individual (#2445)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwmcintosh authored Nov 28, 2022
1 parent 94ab363 commit e6767d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/PKSim.Core/Model/ExpressionProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ public ExpressionProfile() : base(PKSimBuildingBlockType.ExpressionProfile)

public override IReadOnlyList<T> GetAllChildren<T>()
{
return Individual.AllMoleculeContainersFor(Molecule)
.SelectMany(x => x.GetAllChildren<T>()).ToList();
return Individual.GetAllChildren<T>();
}

public virtual string MoleculeName => Molecule?.Name;
Expand Down

0 comments on commit e6767d9

Please sign in to comment.