Skip to content

Commit e1a4df5

Browse files
Restoring cloning variable setting
1 parent a1f1f58 commit e1a4df5

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

vcell-native/src/main/java/org/vcell/libvcell/ModelUtils.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public static void sbml_to_vcml(String sbml_content, Path vcmlPath)
3535
throws VCLoggerException, XmlParseException, IOException, MappingException {
3636

3737
GeometrySpec.avoidAWTImageCreation = true;
38+
XmlHelper.cloneUsingXML = true;
3839
VCMongoMessage.enabled = false;
3940

4041
record LoggerMessage(VCLogger.Priority priority, VCLogger.ErrorType errorType, String message) {};
@@ -76,6 +77,7 @@ record LoggerMessage(VCLogger.Priority priority, VCLogger.ErrorType errorType, S
7677
public static void vcml_to_sbml(String vcml_content, String applicationName, Path sbmlPath, boolean roundTripValidation)
7778
throws XmlParseException, IOException, XMLStreamException, SbmlException, MappingException, ImageException, GeometryException, ExpressionException {
7879
GeometrySpec.avoidAWTImageCreation = true;
80+
XmlHelper.cloneUsingXML = true;
7981
VCMongoMessage.enabled = false;
8082

8183
BioModel bioModel = XmlHelper.XMLToBioModel(new XMLSource(vcml_content));
@@ -115,6 +117,7 @@ public static void vcml_to_sbml(String vcml_content, String applicationName, Pat
115117

116118
public static void vcml_to_vcml(String vcml_content, Path vcmlPath) throws XmlParseException, IOException, MappingException {
117119
GeometrySpec.avoidAWTImageCreation = true;
120+
XmlHelper.cloneUsingXML = true;
118121
VCMongoMessage.enabled = false;
119122

120123
BioModel bioModel = XmlHelper.XMLToBioModel(new XMLSource(vcml_content));
@@ -126,6 +129,7 @@ public static void vcml_to_vcml(String vcml_content, Path vcmlPath) throws XmlPa
126129

127130
public static String get_python_infix(String vcellInfix) throws ExpressionException {
128131
GeometrySpec.avoidAWTImageCreation = true;
132+
XmlHelper.cloneUsingXML = true;
129133
VCMongoMessage.enabled = false;
130134
return new Expression(vcellInfix).infix_Python();
131135
}

vcell-native/src/main/java/org/vcell/libvcell/SolverUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public class SolverUtils {
4040

4141
public static void vcmlToFiniteVolumeInput(String vcml_content, String simulation_name, File parentDir, File outputDir) throws XmlParseException, MappingException, SolverException, ExpressionException, MathException {
4242
GeometrySpec.avoidAWTImageCreation = true;
43+
XmlHelper.cloneUsingXML = true;
4344
VCMongoMessage.enabled = false;
4445

4546
if (vcml_content.substring(0, 300).contains("<sbml xmlns=\"http://www.sbml.org/sbml")) {
@@ -134,6 +135,7 @@ private static FieldDataIdentifierSpec[] getFieldDataIdentifierSpecs(Simulation
134135

135136
public static void sbmlToFiniteVolumeInput(String sbml_content, File outputDir) throws MappingException, PropertyVetoException, SolverException, ExpressionException, VCLoggerException {
136137
GeometrySpec.avoidAWTImageCreation = true;
138+
XmlHelper.cloneUsingXML = true;
137139
VCMongoMessage.enabled = false;
138140

139141
SBMLExporter.MemoryVCLogger vcl = new SBMLExporter.MemoryVCLogger();

0 commit comments

Comments
 (0)