Skip to content

Commit

Permalink
Merge pull request #15 from moocow-the-bovine/tests-tweak
Browse files Browse the repository at this point in the history
CCS/t/03_ufuncs.t assign data of correct type
  • Loading branch information
moocow-the-bovine authored Dec 20, 2024
2 parents dac59a4 + 5d5ffb0 commit 49b4943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CCS/t/03_ufuncs.t
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ sub test_ufunc {

if ($ufunc_name =~ /_ind$/) {
##-- hack: adjust $dense_rc for maximum_ind, minimum_ind
$dense_rc->where( $a->index2d($dense_rc,sequence($a->dim(1))) == $missing_val ) .= -1;
$dense_rc->where( $a->index2d($dense_rc,sequence($a->dim(1))) == $missing_val ) .= indx(-1);
} elsif ($ufunc_name =~ /qsorti$/) {
##-- hack: adjust $dense_rc for qsorti()
my $ccs_mask = $dense_rc->zeroes;
$ccs_mask->indexND( scalar($ccs_rc->whichND) ) .= 1;
$ccs_mask->indexND( scalar($ccs_rc->whichND) ) .= indx(1);
$dense_rc->where( $ccs_mask->not ) .= $ccs_rc->missing;
}
my $label = "${ufunc_name}:missing=$missing_val";
Expand Down

0 comments on commit 49b4943

Please sign in to comment.