Skip to content

Commit

Permalink
Fix labels for descriptors that fail to calculate
Browse files Browse the repository at this point in the history
  • Loading branch information
olas committed May 3, 2012
1 parent e0ee01d commit cc63848
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -11,6 +11,7 @@
package net.bioclipse.cdk.qsar.impl;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -337,8 +338,9 @@ else if (obj instanceof String) {
Float[] resultVals = new Float[cdkDescriptor.getDescriptorResultType().
length() > 0 ? cdkDescriptor.getDescriptorResultType().
length() : 1];
String[] resultLabels = null;
// logger.debug("# result values: " + resultVals.length);
String[] resultLabels = cdkDescriptor.getDescriptorNames();
// logger.debug("# result values: " + resultVals.length);
logger.debug("Result labels: " + Arrays.toString(resultLabels));


//Calculate descriptor
Expand Down

0 comments on commit cc63848

Please sign in to comment.