Permalink
Browse files

Fixed returning of the descriptor result type: actual length

Signed-off-by: Rajarshi  Guha <rajarshi.guha@gmail.com>
  • Loading branch information...
1 parent ac02901 commit 504917823adca5b26ed3ec2b5443d2ab61aaa884 @egonw egonw committed with rajarshi Jun 22, 2011
@@ -46,6 +46,7 @@
import org.openscience.cdk.qsar.DescriptorValue;
import org.openscience.cdk.qsar.IMolecularDescriptor;
import org.openscience.cdk.qsar.result.DoubleArrayResult;
+import org.openscience.cdk.qsar.result.DoubleArrayResultType;
import org.openscience.cdk.qsar.result.IDescriptorResult;
import org.openscience.cdk.tools.ILoggingTool;
import org.openscience.cdk.tools.LoggingToolFactory;
@@ -340,7 +341,7 @@ public DescriptorValue calculate(IAtomContainer container) {
*/
@TestMethod("testGetDescriptorResultType")
public IDescriptorResult getDescriptorResultType() {
- return new DoubleArrayResult();
+ return new DoubleArrayResultType(147);
}
}

0 comments on commit 5049178

Please sign in to comment.