Commit b82b66ec authored by Piotr Gawron's avatar Piotr Gawron

don't set name for reaction if name is not present

parent 64252c37
Pipeline #36470 failed with stage
in 65 minutes
......@@ -138,9 +138,6 @@ public class SbmlBioEntityParser {
throws InvalidInputDataExecption {
result.addMiriamData(extractMiriamDataFromAnnotation(sbmlElement.getAnnotation()));
result.setName(sbmlElement.getName());
if (result.getName() == null || result.getName().isEmpty()) {
result.setName(result.getElementId());
}
String notes = NotesUtility.extractNotes(sbmlElement);
result.setNotes(notes);
......
......@@ -103,6 +103,9 @@ public class SbmlCompartmentParser extends SbmlElementParser<org.sbml.jsbml.Comp
}
Compartment result = new SquareCompartment(compartment.getId());
assignBioEntityData(compartment, result);
if (result.getName() == null || result.getName().isEmpty()) {
result.setName(result.getElementId());
}
return result;
}
......
......@@ -534,6 +534,9 @@ public class SbmlSpeciesParser extends SbmlElementParser<org.sbml.jsbml.Species>
result.setCharge(species.getCharge());
}
assignBioEntityData(species, result);
if (result.getName() == null || result.getName().isEmpty()) {
result.setName(result.getElementId());
}
if (getLayout() == null) {
assignCompartment(result, species.getCompartment());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment