Skip to content

Commit 0a83906

Browse files
Revert "Merge pull request #3379 from Open-Systems-Pharmacology/3014-multiple-dose-application-naming" (#3442)
This reverts commit e72e7d8, reversing changes made to f8c1773.
1 parent 1999ab6 commit 0a83906

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/PKSim.Core/Services/EventBuildingBlockCreator.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,10 @@ private void addProtocol(CompoundProperties compoundProperties)
148148

149149
eventGroup.SourceCriteria.Add(new MatchTagCondition(CoreConstants.Tags.EVENTS));
150150

151-
var schemaItems = _schemaItemsMapper.MapFrom(protocol).ToList();
152-
var width = schemaItems.Count.ToString().Length;
153-
154-
schemaItems.Each((schemaItem, index) =>
151+
_schemaItemsMapper.MapFrom(protocol).Each((schemaItem, index) =>
155152
{
156-
var number = (index + 1).ToString($"D{width}");
157-
var applicationName = $"{CoreConstants.APPLICATION_NAME_TEMPLATE}{number}";
153+
//+1 to start at 1 for the nomenclature
154+
var applicationName = $"{CoreConstants.APPLICATION_NAME_TEMPLATE}{index + 1}";
158155
addApplication(eventGroup, schemaItem, applicationName, compoundProperties, protocol);
159156
});
160157

0 commit comments

Comments
 (0)