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 | bff7ea2fd228a1c80e8b85f6bbe562618ebdfe97 (patch) | |
tree | f9a759d354ea898ee69faf6cc2eba1b34306d320 /vest | |
parent | 712c9d69afde47a1bea81d505ba736462f6214f4 (diff) |
prevent over-aggressive error checking in vest script
Diffstat (limited to 'vest')
-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"; |