Skip to content

Commit

Permalink
Hotfix for regression in Filter::Simple relative to Filter::Util::Call
Browse files Browse the repository at this point in the history
  env PDL_NICESLICE_ENGINE='Filter::Simple' ...
  env PDL_NICESLICE_ENGINE='Filter::Util::Call' ...

Fixing this properly will depend on <PDLPorters/pdl#406>.

Adding this fix for now so that other fixes can move forward.
  • Loading branch information
zmughal committed Dec 30, 2022
1 parent bfab061 commit ba8e46e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PDL/Graphics/Prima/DataSet.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1426,7 +1426,7 @@ sub guess_scaling_for {
my $lin_space = $lin_spaces->average;
my $lin_score = (($lin_spaces - $lin_space)**2)->sum / $lin_spaces->nelem;

my $log_spaces = $data(1:-1) / $data(0:-2);
my $log_spaces = $data->slice('1:-1') / $data(0:-2);
my $log_space = $log_spaces->average;
my $log_score = (($log_spaces - $log_space)**2)->sum / $log_spaces->nelem;

Expand Down

0 comments on commit ba8e46e

Please sign in to comment.