From d5aaa32f7b26832bfbc014757b15c52ce1a626cf Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Thu, 18 Apr 2024 14:26:55 +0100 Subject: [PATCH] fix(sedml): make variable ids unique for data generators Otherwise biosimulations errors; ``` Multiple objects have the following ids:\n - hhpop_0_bioPhys1_membraneProperties_KConductances_KConductance_n_q\n - hhpop_0_bioPhys1_membraneProperties_NaConductances_NaConductance_h_q\n - hhpop_0_bioPhys1_membraneProperties_NaConductances_NaConductance_m_q\n - hhpop_0_v\n - time"" ``` --- src/main/java/org/lemsml/export/sedml/SEDMLWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/lemsml/export/sedml/SEDMLWriter.java b/src/main/java/org/lemsml/export/sedml/SEDMLWriter.java index 15df0227..3e02943b 100644 --- a/src/main/java/org/lemsml/export/sedml/SEDMLWriter.java +++ b/src/main/java/org/lemsml/export/sedml/SEDMLWriter.java @@ -170,7 +170,7 @@ else if(modelFormat == Format.CELLML) } String genId = prefix + id + "_" + lineOrColumnComp.getID().replace(" ","_"); - String varFull = pop + "_" + num+segid + "_" + var; + String varFull = genId + "_" + pop + "_" + num+segid + "_" + var; startElement(main, "dataGenerator", "id=" + genId, "name=" + genId); startElement(main, "listOfVariables");