From e6767d95b5f895ec11f366128d1a722ba9b2c5c3 Mon Sep 17 00:00:00 2001 From: Robert McIntosh <261477+rwmcintosh@users.noreply.github.com> Date: Mon, 28 Nov 2022 11:49:50 -0500 Subject: [PATCH] use GetAllChildren of Individual (#2445) --- src/PKSim.Core/Model/ExpressionProfile.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/PKSim.Core/Model/ExpressionProfile.cs b/src/PKSim.Core/Model/ExpressionProfile.cs index 849326f6c..022f283be 100644 --- a/src/PKSim.Core/Model/ExpressionProfile.cs +++ b/src/PKSim.Core/Model/ExpressionProfile.cs @@ -31,8 +31,7 @@ public ExpressionProfile() : base(PKSimBuildingBlockType.ExpressionProfile) public override IReadOnlyList GetAllChildren() { - return Individual.AllMoleculeContainersFor(Molecule) - .SelectMany(x => x.GetAllChildren()).ToList(); + return Individual.GetAllChildren(); } public virtual string MoleculeName => Molecule?.Name;