Commit b706a06b authored by Piotr Gawron's avatar Piotr Gawron
Browse files

debug method improved

parent 195b47be
......@@ -30,6 +30,7 @@ import lcsb.mapviewer.model.map.reaction.Reaction;
import lcsb.mapviewer.model.map.reaction.ReactionComparator;
import lcsb.mapviewer.model.map.species.Element;
import lcsb.mapviewer.model.map.species.ElementComparator;
import lcsb.mapviewer.modelutils.map.ElementUtils;
/**
* Comparator for {@link Model} class.
......@@ -50,6 +51,8 @@ public class ModelComparator extends Comparator<Model> {
private SetComparator<SbmlUnit> unitSetComparator = new SetComparator<>(new SbmlUnitComparator());
private ElementUtils eu = new ElementUtils();
/**
* Constructor that requires {@link #epsilon} parameter.
*
......@@ -260,8 +263,7 @@ public class ModelComparator extends Comparator<Model> {
for (Element element : elements) {
int status = elementComparator.compare(element, map2.get(element.getElementId()));
if (status != 0) {
logger
.debug("Element doesn't have a match: " + element.getElementId() + ", " + map2.get(element.getElementId()));
logger.debug(eu.getElementTag(element) + "Element doesn't have a match");
return status;
}
}
......@@ -269,8 +271,7 @@ public class ModelComparator extends Comparator<Model> {
for (Element element : elements2) {
int status = elementComparator.compare(element, map1.get(element.getElementId()));
if (status != 0) {
logger
.debug("Element doesn't have a match: " + element.getElementId() + ", " + map2.get(element.getElementId()));
logger.debug(eu.getElementTag(element) + "Element doesn't have a match");
return status;
}
}
......
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