Skip to content

Commit

Permalink
spelling: s|exspecting|expecting|
Browse files Browse the repository at this point in the history
  • Loading branch information
zmughal authored and mohawk2 committed May 2, 2015
1 parent 156a8f0 commit 973baea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion IO/Pnm/Pic.pm
Expand Up @@ -968,7 +968,7 @@ sub chkpdl {
my ($isrgb,$form) = (0,"");
my @Dims = $pdl->dims;
$isrgb = 1 if ($#Dims >= 2) && ($Dims[0] == 3);
barf "exspecting 2D or 3D-RGB-interlaced data as input"
barf "expecting 2D or 3D-RGB-interlaced data as input"
unless ($isrgb || ($#Dims == 1));
$$hints{'COLOR'} = "" unless defined($$hints{'COLOR'});
Expand Down
6 changes: 3 additions & 3 deletions IO/Pnm/pnm.pd
Expand Up @@ -249,13 +249,13 @@ sub PDL::wpnm {

# check the data
my @Dims = $pdl->dims;
barf "wpnm: exspecting 3D (3,w,h) input"
barf "wpnm: expecting 3D (3,w,h) input"
if ($type =~ /PPM/) && (($#Dims != 2) || ($Dims[0] != 3));
barf "wpnm: exspecting 2D (w,h) input"
barf "wpnm: expecting 2D (w,h) input"
if ($type =~ /P[G,B]M/) && ($#Dims != 1);
barf "wpnm: user should convert float and double data to appropriate type"
if ($pdl->get_datatype == $PDL_F) || ($pdl->get_datatype == $PDL_D);
barf "wpnm: exspecting prescaled data"
barf "wpnm: expecting prescaled data"
if (($pdl->get_datatype != $PDL_B) || ($pdl->get_datatype != $PDL_US)) &&
($pdl->min < 0);

Expand Down
4 changes: 2 additions & 2 deletions Lib/ImageRGB/imagergb.pd
Expand Up @@ -126,7 +126,7 @@ sub PDL::interlrgb {
my $res;
# for our purposes $lut should be (3,z) where z is the number
# of colours in the lut
barf "exspecting (3,x) input" if ($lut->dims)[0] != 3;
barf "expecting (3,x) input" if ($lut->dims)[0] != 3;
# do the conversion as an implicitly threaded index lookup
if ($lut->fflows) {
$res = $lut->xchg(0,1)->index($pdl->dummy(0));
Expand Down Expand Up @@ -162,7 +162,7 @@ greyscale image (x,.....) using standard formula:
sub PDL::rgbtogr {
barf "Usage: \$im->rgbtogr" if $#_ < 0;
my $im = shift;
barf "rgbtogr: exspecting RGB (3,...) input"
barf "rgbtogr: expecting RGB (3,...) input"
if (($im->dims)[0] != 3);

my $type = $im->get_datatype;
Expand Down

0 comments on commit 973baea

Please sign in to comment.