Skip to content

Commit

Permalink
Updates Pharos3D & small bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
korffmo committed Aug 21, 2024
1 parent b17e2cc commit deeb2cd
Showing 1 changed file with 7 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,6 @@ public DescriptorWeightsHelper() {
int [] weights = calcWeightLabels(liSubGraphIndices, molecule3D);
return weights;
}
public int [] deriveWeightLabelsPheSA(PheSAMolecule queryPheSA) {


for (PPGaussian ppGaussian : queryPheSA.getVolumes().get(0).getPPGaussians()) {

}

return null;
}



/**
* - End standing pp points are set mandatory.
Expand All @@ -86,8 +75,7 @@ public DescriptorWeightsHelper() {
*/
public static int [] calcWeightLabels(List<SubGraphIndices> liSubGraphIndices, Molecule3D molecule3D){

int [] weights = new int[molecule3D.getAtoms()];
Arrays.fill(weights, DescriptorWeightsHelper.LABEL_WEIGHT_NORMAL);
int [] weights = getBasisWeightLabels(molecule3D);

for (int i = 0; i < liSubGraphIndices.size(); i++) {
SubGraphIndices sgi = liSubGraphIndices.get(i);
Expand All @@ -110,6 +98,12 @@ public DescriptorWeightsHelper() {
return weights;
}

public static int [] getBasisWeightLabels(Molecule3D molecule3D){
int [] weights = new int[molecule3D.getAtoms()];
Arrays.fill(weights, DescriptorWeightsHelper.LABEL_WEIGHT_NORMAL);
return weights;
}

public static int [] mergeWeightLabels(int[] arrWeightLabel, int[] arrWeightLabelUser) {

if(arrWeightLabel.length!= arrWeightLabelUser.length){
Expand Down

0 comments on commit deeb2cd

Please sign in to comment.