Changeset 42304
- Timestamp:
- Nov 14, 2022, 1:00:24 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-ops-20220705/ippScripts/scripts/nightly_science.pl
- Property svn:mergeinfo changed
/trunk/ippScripts/scripts/nightly_science.pl merged: 42302
r42300 r42304 1557 1557 my $this_object = shift @{ $object_row }; 1558 1558 my $this_chunk = shift @{ $object_row }; 1559 my $input_sth = "select exp_id,warp_id,dateobs,rawExp.comment,warpRun.state AS warp_state,camProcessedExp.quality FROM ";1559 my $input_sth = "select exp_id,warp_id,dateobs,rawExp.comment,warpRun.state AS warp_state,camProcessedExp.quality,chipRun.state FROM "; 1560 1560 $input_sth .= " rawExp LEFT JOIN chipRun USING (exp_id) LEFT JOIN camRun USING (chip_id) LEFT JOIN camProcessedExp USING(cam_id) LEFT JOIN fakeRun USING (cam_id) LEFT JOIN warpRun USING (fake_id) "; 1561 1561 $input_sth .= " WHERE chipRun.label = '$label' AND chipRun.data_group = '$data_group' AND rawExp.filter = '$filter' AND rawExp.object = '$this_object' "; … … 1574 1574 my $this_state = ${ $this_warp }[4]; 1575 1575 my $this_warp_id = ${ $this_warp }[1]; 1576 my $chip_state = ${ $this_warp }[6]; 1576 1577 1577 1578 #find exposures for this object that have not been fully processed 1578 if (($this_warp_id eq 'NULL') && (($this_quality == 0) || ($this_quality eq 'NULL') ) ) {1579 if (($this_warp_id eq 'NULL') && (($this_quality == 0) || ($this_quality eq 'NULL') || ($chip_state eq 'run') ) ) { 1579 1580 $Nbad += 1; 1580 1581 } … … 1749 1750 my $difference=$date2->delta_ms($date1); 1750 1751 1751 $summittimediff=(($difference->hours)*60.) + ($difference->minutes) + (($difference->seconds)/60.);1752 my $summittimediff=(($difference->hours)*60.) + ($difference->minutes) + (($difference->seconds)/60.); 1752 1753 } 1753 1754 … … 1764 1765 my $this_chunk = shift @{ $object_row }; 1765 1766 1766 my $input_sth = "select exp_id,warp_id,dateobs,rawExp.comment,warpRun.state AS warp_state,camProcessedExp.quality,substr(comment, 1, position(' ' in comment)),camProcessedExp.fwhm_major FROM ";1767 my $input_sth = "select exp_id,warp_id,dateobs,rawExp.comment,warpRun.state AS warp_state,camProcessedExp.quality,substr(comment, 1, position(' ' in comment)),camProcessedExp.fwhm_major,chipRun.state FROM "; 1767 1768 $input_sth .= " rawExp LEFT JOIN chipRun USING (exp_id) LEFT JOIN camRun USING (chip_id) LEFT JOIN camProcessedExp USING(cam_id) LEFT JOIN fakeRun USING (cam_id) LEFT JOIN warpRun USING (fake_id) "; 1768 1769 $input_sth .= " WHERE chipRun.label = '$label' AND chipRun.data_group = '$data_group' AND rawExp.filter = '$filter' AND rawExp.object = '$this_object' "; … … 1783 1784 my $this_fwhm = ${ $this_warp }[7]; 1784 1785 my $this_warp_id = ${ $this_warp }[1]; 1786 my $chip_state = ${ $this_warp }[8]; 1785 1787 1786 1788 #find exposures for this object that have not been fully processed 1787 if (($this_warp_id eq 'NULL') && (($this_quality == 0) || ($this_quality eq 'NULL') ) ) {1789 if (($this_warp_id eq 'NULL') && (($this_quality == 0) || ($this_quality eq 'NULL') || ($chip_state eq 'run') ) ) { 1788 1790 $Nbad += 1; 1789 1791 } … … 1914 1916 } 1915 1917 else { 1916 print STDERR "Preparing to diff $date $target $input_exp_id $template_exp_id ($input_warp_id $template_warp_id) $this_object $input_comment $template_comment\n";1918 print STDERR "Preparing to single desperate diff $date $target $input_exp_id $template_exp_id ($input_warp_id $template_warp_id) $this_object $input_comment $template_comment\n"; 1917 1919 } 1918 1920 … … 2135 2137 my $difference=$date2->delta_ms($date1); 2136 2138 2137 $summittimediff=(($difference->hours)*60.) + ($difference->minutes) + (($difference->seconds)/60.);2139 my $summittimediff=(($difference->hours)*60.) + ($difference->minutes) + (($difference->seconds)/60.); 2138 2140 } 2139 2141 … … 2150 2152 my $this_chunk = shift @{ $object_row }; 2151 2153 2152 my $input_sth = "select exp_id,warp_id,dateobs,rawExp.comment,warpRun.state AS warp_state,camProcessedExp.quality ,camProcessedExp.fwhm_majorFROM ";2154 my $input_sth = "select exp_id,warp_id,dateobs,rawExp.comment,warpRun.state AS warp_state,camProcessedExp.qualityy,substr(comment, 1, position(' ' in comment)),camProcessedExp.fwhm_major,chipRun.state FROM "; 2153 2155 $input_sth .= " rawExp LEFT JOIN chipRun USING (exp_id) LEFT JOIN camRun USING (chip_id) LEFT JOIN camProcessedExp USING(cam_id) LEFT JOIN fakeRun USING (cam_id) LEFT JOIN warpRun USING (fake_id) "; 2154 2156 $input_sth .= " WHERE chipRun.label = '$label' AND chipRun.data_group = '$data_group' AND rawExp.filter = '$filter' AND rawExp.object = '$this_object' "; … … 2169 2171 my $this_fwhm = ${ $this_warp }[7]; 2170 2172 my $this_warp_id = ${ $this_warp }[1]; 2173 my $chip_state = ${ $this_warp }[8]; 2171 2174 2172 2175 #find exposures for this object that have not been fully processed 2173 if (($this_warp_id eq 'NULL') && (($this_quality == 0) || ($this_quality eq 'NULL') ) ) {2176 if (($this_warp_id eq 'NULL') && (($this_quality == 0) || ($this_quality eq 'NULL') || ($chip_state eq 'run') ) ) { 2174 2177 $Nbad += 1; 2175 2178 } … … 2276 2279 } 2277 2280 else { 2278 print STDERR "Preparing to d iff $date $target $input_exp_id $template_exp_id ($input_warp_id $template_warp_id) $this_object $input_comment $template_comment\n";2281 print STDERR "Preparing to desperate diff $date $target $input_exp_id $template_exp_id ($input_warp_id $template_warp_id) $this_object $input_comment $template_comment\n"; 2279 2282 } 2280 2283 - Property svn:mergeinfo changed
Note:
See TracChangeset
for help on using the changeset viewer.
