Skip to content

Commit

Permalink
introduced empty PPNode node
Browse files Browse the repository at this point in the history
  • Loading branch information
korffmo committed Jan 26, 2024
1 parent 9f67b38 commit ddc13c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ public static List<PPNode> readNodes(String strMolDistHist){
}
public static MolDistHist readNodes2MDH(String strMolDistHist){

List<PPNode> liPPNode = readNodes( strMolDistHist);
List<PPNode> liPPNode = readNodes(strMolDistHist);
int size = liPPNode.size();
MolDistHist mdh = new MolDistHist(size);
for (PPNode ppNode : liPPNode) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ public static MolDistHist assembleNoDistHist (MolDistHist ... arr){
mdh.addNode(arr[i].getNode(j));
}
}


return mdh;
}
public static boolean isZero(byte [] b){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -613,10 +613,14 @@ public String toStringLongHardPPPoint(){
/**
*
* @param strNode i.e. 262,392,4358*2,8582,590088,598407
* @return
* @return the node with the atom types. If an empty string is given a node without atom types is returned.
*/
public static PPNode read(String strNode) {

if(strNode.length()==0){
return new PPNode();
}

String [] arr = strNode.split(SEPARATOR_ATOMS);

PPNode n = new PPNode();
Expand Down

0 comments on commit ddc13c5

Please sign in to comment.