Skip to content

Commit

Permalink
tweak to badvalue handline in transform.pd
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig DeForest committed May 23, 2016
1 parent 421d401 commit 1ad06fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/Transform/transform.pd
Expand Up @@ -1673,7 +1673,8 @@ sub map {
$out = PDL::new_from_specification('PDL',$in->type,@odims);
$out->sethdr($ohdr) if defined($ohdr);
if($PDL::Bad::Status and $in->badflag()) {
if($PDL::Bad::Status) {
# set badflag on output all the time if possible, to account for boundary violations
$out->badflag(1);
}
Expand Down

0 comments on commit 1ad06fa

Please sign in to comment.