aboutsummaryrefslogtreecommitdiff
path: root/scripts/check-peak-detection
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2013-06-01 14:05:29 -0700
committerThomas White <taw@bitwiz.org.uk>2013-06-01 14:05:29 -0700
commitd1a49592c0a96e12709c80cebd44a2528bafff9a (patch)
treeed039c304b4b0ecd8d33acece57a321a35ca3c9d /scripts/check-peak-detection
parente6e4e70550a8aa451738bc8e4fd982fa886094ed (diff)
scripts/check-peak-detection: Fix
Diffstat (limited to 'scripts/check-peak-detection')
-rwxr-xr-xscripts/check-peak-detection6
1 files changed, 1 insertions, 5 deletions
diff --git a/scripts/check-peak-detection b/scripts/check-peak-detection
index 7d9b6660..002aaeca 100755
--- a/scripts/check-peak-detection
+++ b/scripts/check-peak-detection
@@ -40,21 +40,17 @@ my $indexed;
while ( $line = <FH> ) {
chomp $line;
- my $handled = 0;
if ( $in_image ) {
printf(TMP "%s\n", $line);
- $handled = 1;
}
if ( $line =~ /^Peaks\ from\ peak\ search$/ ) {
$in_image = 1;
- $handled = 1;
}
if ( $line =~ /^Image\ filename:\ (.+)$/ ) {
$filename = $1;
- $handled = 1;
}
if ( $line =~ /^indexed_by\ =\ (.*)$/ ) {
@@ -91,6 +87,7 @@ while ( $line = <FH> ) {
printf(STDERR "Not showing %s\n", $filename);
unlink("list.tmp");
open(TMP, "> list.tmp");
+ $in_image = 0;
next;
}
@@ -103,7 +100,6 @@ while ( $line = <FH> ) {
if ( $? != 0 ) { exit; }
unlink("list.tmp");
open(TMP, "> list.tmp");
- $handled = 1;
$in_image = 0;
}