Open-Systems-Pharmacology / OSPSuite-R

R package for the OSPSuite
https://www.open-systems-pharmacology.org/OSPSuite-R/
Other
29 stars 12 forks source link

Error loading population created with PK-Sim V9 #1487

Open Yuri05 opened 2 months ago

Yuri05 commented 2 months ago

When I load the population from CSV file created in PK-Sim V11 this gives an error:

Error in do.call(".External", c(list("r_call_method", self$pointer, methodName), : Type: OSPSuite.Utility.Exceptions.OSPSuiteException Message: Error: The input string '10 individuals)' was not in a correct format. Method: Void ThrowOnError() Stack trace: at OSPSuite.Infrastructure.Import.Services.ImportLogger.ThrowOnError() at OSPSuite.R.Services.PopulationTask.ImportPopulation(String fileFullPath) at InvokeStub_PopulationTask.ImportPopulation(Object, Span`1) at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

However, when the population CSV file was created in PK-Sim V9.1 I do not receive any error.

Originally posted by @nina-nauwelaerts in https://github.com/Open-Systems-Pharmacology/OSPSuite-R/issues/1482#issuecomment-2331111937

nina-nauwelaerts commented 2 months ago

Thank you for moving this comment. However it is the population created in V11 that runs into the error. If it could be helpfull, below the population files that we tried to load.

Postpartum population V9.csv Postpartum population V11.csv