Uncommented MDFlattener Code

This section of the code was to "check" for VPR1 or VPR2, but it broke
if the interactions are not going to be present in the TopLevel MD.
This commit is contained in:
Pedro Fontanarrosa 2019-02-01 17:37:56 -06:00
parent 6ed59624fd
commit d390c58f95

View file

@ -140,7 +140,7 @@ public class SBOL2SBML {
//The following two for loops determine if a flattening process has to occur, or if we just return the unflattened ModuleDefinition
//This is because if we have multi-level nested modules and ModuleDefinitions, we should skip the flattening in this step
//since the flattening will occur later in the generateModel() method when the flattening method will be called upon the sub-models.
Set<URI> Modules_remote_mapsto = new HashSet<URI>();
/* Set<URI> Modules_remote_mapsto = new HashSet<URI>();
for (Module ChildModule : MD.getModules()) {
for (MapsTo M_MapsTos : ChildModule.getMapsTos()) {
Modules_remote_mapsto.add(M_MapsTos.getRemoteIdentity());
@ -152,7 +152,7 @@ public class SBOL2SBML {
return MD;
}
}
}
}*/
//remove the Root MD you are going to flatten
doc.removeModuleDefinition(MD);