Skip to content

Commit

Permalink
Update Flexophore, added weights for MolDistHistViz
Browse files Browse the repository at this point in the history
  • Loading branch information
korffmo committed Jul 13, 2024
1 parent bf22293 commit 67d97fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,19 +168,14 @@ public MolDistHistViz(MolDistHist mdh) {
if(mdh.getNumPPNodes()==0){
throw new RuntimeException("Empty object given into constructor.");
}

mdh.copy(this);

modeFlexophore = mdh.getModeFlexophore();

liPPNodeViz=new ArrayList<PPNodeViz>(mdh.getNumPPNodes());
liPPNodeViz=new ArrayList<>(mdh.getNumPPNodes());
for (int i = 0; i < mdh.getNumPPNodes(); i++) {
PPNodeViz node = new PPNodeViz(mdh.getNode(i));
liPPNodeViz.add(node);
}

hsIndexInevitablePPPoints = new HashSet<Integer>();

hsIndexInevitablePPPoints = new HashSet<>();
realize();
}

Expand Down Expand Up @@ -636,7 +631,7 @@ public boolean isInevitablePharmacophorePoint(int indexNode){
}
@Override
public double getWeightPharmacophorePoint(int indexNode) {
return 1.0;
return arrWeight[indexNode];
}
public boolean isAliphatic(int indexNode) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,8 @@ public boolean isValidSolution(SolutionCompleteGraph solution) {
//
if(mapping){
for (int i = 0; i < heap; i++) {

int indexNodeQuery = solution.getIndexQueryFromHeap(i);

int indexNodeBase = solution.getIndexCorrespondingBaseNode(indexNodeQuery);

if(!areNodesMapping(indexNodeQuery, indexNodeBase)) {
mapping = false;
break;
Expand Down

0 comments on commit 67d97fd

Please sign in to comment.