diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2011-03-20 16:16:11 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2011-03-20 16:16:11 -0400 |
commit | 21a136afad4d1b04cddc3ff1e105b0fc7e9d8c2c (patch) | |
tree | 659704e5b176c7f917eaca9af0831bd5cf85baa1 | |
parent | ed47102885e52c52146fc8631ff624779bd7eb0a (diff) |
prevent over-aggressive error checking in vest script
-rwxr-xr-x | vest/dist-vest.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vest/dist-vest.pl b/vest/dist-vest.pl index d17d7de1..80d2471e 100755 --- a/vest/dist-vest.pl +++ b/vest/dist-vest.pl @@ -417,7 +417,8 @@ while (1){ print STDERR "COMMAND:\n$cmd\n"; check_bash_call($cmd); $cmd="sort -nk3 $DIR_FLAG '-t|' $dir/redoutput.$im1 | head -1"; - my $best=check_bash_output("$cmd"); chomp $best; + # sort returns failure even when it doesn't fail for some reason + my $best=unchecked_output("$cmd"); chomp $best; print STDERR "$best\n"; my ($oa, $x, $xscore) = split /\|/, $best; $score = $xscore; @@ -450,7 +451,7 @@ while (1){ my $v = ($ori{$k} + $axi{$k} * $x) / $norm; print W "$k $v\n"; } - check_call("rm -rf $dir/splag.$im1"); + check_call("rm $dir/splag.$im1/*"); $inweights = $finalFile; } $lastWeightsFile = "$dir/weights.$iteration"; |