BEAST2-Dev / BEASTLabs

A package for BEAST 2 implementing generally useful stuff
6 stars 4 forks source link

Critical bug at Slice #13

Closed walterxie closed 3 years ago

walterxie commented 3 years ago

In Slice, the method below is alway returning the 1st element of a parameter, even if the parameter has multiple dimensions:

    public double getArrayValue() {
        return functionInput.get().getArrayValue(0);
    }

The correct code should be

    public double getArrayValue() {
        return functionInput.get().getArrayValue(indexStart);
    }