Flatten works

This commit is contained in:
LukasBuecherl 2022-07-25 13:28:58 -06:00
parent 1c24b1edc5
commit 8cffc3062b
3 changed files with 86 additions and 32 deletions

View file

@ -6399,7 +6399,7 @@ public class BioModel extends CoreObservable{
}
}
private ArrayList<String> getListOfSubmodels() throws XMLStreamException, IOException, BioSimException {
public ArrayList<String> getListOfSubmodels() throws XMLStreamException, IOException, BioSimException { // Changed private to public (Lukas)
ArrayList<String> comps = new ArrayList<String>();
if (this.getGridEnabledFromFile(filename.replace(".gcm",".xml"))) {

View file

@ -1968,7 +1968,8 @@ public class SBMLutilities extends CoreObservable
{
String leftStr = convertMath2PrismProperty(math.getLeftChild());
String rightStr = convertMath2PrismProperty(math.getRightChild());
return "(" + leftStr + " ^ " + rightStr + ")";
//return "(" + leftStr + " ^ " + rightStr + ")";
return "pow(" + leftStr + " , " + rightStr + ")";
}
else if (math.getType() == ASTNode.Type.RATIONAL)
{