Skip to content

Commit

Permalink
fix(sedml): make variable ids unique for data generators
Browse files Browse the repository at this point in the history
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""
```
  • Loading branch information
sanjayankur31 committed Apr 18, 2024
1 parent 1e3948d commit d5aaa32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/lemsml/export/sedml/SEDMLWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit d5aaa32

Please sign in to comment.