Changeset 9267 for trunk/ippScripts/scripts/phase0_imfile.pl
- Timestamp:
- Oct 4, 2006, 2:51:22 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/phase0_imfile.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/phase0_imfile.pl
r9251 r9267 97 97 # Push the results into the database 98 98 unless ($no_update) { 99 my $command = $p0tool . " " . P0TOOL_MODE() . " " . P0TOOL_EXPTAG() . " " . $exp_tag . " " .100 P0TOOL_CLASSID() . " " .$class_id; # Command to run p0tool101 99 my @command; 100 push @command, $p0tool, P0TOOL_MODE(), P0TOOL_EXPTAG(), $exp_tag, P0TOOL_CLASSID(), $class_id; # Command to run p0tool 101 102 102 foreach my $constant (keys %{CONSTANTS()}) { 103 $command .= " " . CONSTANTS->{$constant} . " " .($stats->data($constant))->{value};103 push @command, CONSTANTS->{$constant}, ($stats->data($constant))->{value}; 104 104 } 105 105 foreach my $variable (keys %{VARIABLES()}) { 106 106 # Just use the mean value 107 $command .= " " . VARIABLES->{$variable} . " " .($stats->data($variable))->{mean};107 push @command, VARIABLES->{$variable}, ($stats->data($variable))->{mean}; 108 108 } 109 110 $command .= " " . P0TOOL_BG_MEAN() . " " . $stats->bg_mean();109 110 push @command, P0TOOL_BG_MEAN(), $stats->bg_mean(), P0TOOL_BG_STDEV(); 111 111 if (defined($stats->bg_stdev())) { 112 $command .= " " . P0TOOL_BG_STDEV() . " " .$stats->bg_stdev();112 push @command, $stats->bg_stdev(); 113 113 } else { 114 114 # Will not be defined if there is only a single imfile 115 $command .= " " . P0TOOL_BG_STDEV() . " 0";115 push @command, 0; 116 116 } 117 $command .= " " . P0TOOL_BG_MEAN_STDEV() . " " .$stats->bg_mean_stdev();117 push @command, P0TOOL_BG_MEAN_STDEV(), $stats->bg_mean_stdev(); 118 118 119 119 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 120 run(command => $command, verbose => 1);120 run(command => \@command, verbose => 1); 121 121 die "Unable to perform p0tool -updateimfile: $error_code\n" if not $success; 122 122 }
Note:
See TracChangeset
for help on using the changeset viewer.
