Open-Systems-Pharmacology / MoBi

MoBi® is a software tool for multiscale physiological modeling and simulation
Other
31 stars 10 forks source link

Cannot load a simulation after renaming any simulation #1640

Closed PavelBal closed 1 week ago

PavelBal commented 1 week ago

Application: MoBi® 12.0.370

Sequence contains more than one matching element

Stack trace:

at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate)
   at MoBi.Core.Services.TemplateResolverTask.TemplateBuildingBlockFor[TBuildingBlock](TBuildingBlock buildingBlock)
   at MoBi.Presentation.Tasks.Interaction.InteractionTasksForSimulation.TemplateBuildingBlockFor[TBuildingBlock](TBuildingBlock buildingBlock)
   at MoBi.Presentation.Tasks.Interaction.InteractionTasksForSimulation.<FindChangedBuildingBlocks>b__19_0(IBuildingBlock buildingBlock)
   at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at MoBi.Presentation.Tasks.Interaction.InteractionTasksForSimulation.FindChangedBuildingBlocks(IMoBiSimulation simulation)
   at MoBi.Presentation.Presenter.Main.SimulationExplorerPresenter.refreshDisplayedSimulation(IMoBiSimulation simulation)
   at MoBi.Presentation.Presenter.Main.SimulationExplorerPresenter.addClassifiableSimulationToTree(ITreeNode`1 classificationNode, ClassifiableSimulation classifiableSimulation)
   at OSPSuite.Presentation.Presenters.AbstractExplorerPresenter`2.AddClassifiableToTree[T](T classifiable, RootNodeType rootNodeType, Func`3 addClassifiableToTree)
   at MoBi.Presentation.Presenter.Main.SimulationExplorerPresenter.addClassifiableSimulationToSimulationRootFolder(ClassifiableSimulation classifiableSimulation)
   at OSPSuite.Presentation.Presenters.AbstractExplorerPresenter`2.AddSubjectToClassifyToTree[TSubject,TClassifiable](TSubject subject, Func`2 addClassifiableToTree)
   at MoBi.Presentation.Presenter.Main.SimulationExplorerPresenter.addSimulationToTree(IMoBiSimulation simulation)
   at MoBi.Presentation.Presenter.Main.SimulationExplorerPresenter.Handle(SimulationAddedEvent eventToHandle)
   at OSPSuite.Utility.Events.EventPublisher.<>c__DisplayClass4_1`1.<PublishEvent>b__1()
   at OSPSuite.Utility.Exceptions.ExceptionManagerBase.Execute(Action action)