Changeset 1497
- Timestamp:
 - 02/04/09 17:42:20 (17 years ago)
 - Location:
 - trunk
 - Files:
 - 
      
- 2 edited
 
- 
          
  doc/CHANGELOG (modified) (1 diff)
 - 
          
  src/STLineFinder.cpp (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/doc/CHANGELOG
r1488 r1497 4 4 Release 2.3.0 [2009-01-??] 5 5 6 * Ticket #149 Fixed the bug causing spectral line search to go into an infinite loop 7 in some rare circumstances 6 8 * Ticket #110 Added export to CLASS readable FITS files 7 9 scantable.save("myfile.fits", "CLASS")  - 
      
trunk/src/STLineFinder.cpp
r1315 r1497 870 870 // iterator through lines 871 871 std::list<std::pair<int,int> >::const_iterator cli=lines.begin(); 872 for (int ch=0;ch<int(res_mask.size());++ch) 872 for (int ch=0;ch<int(res_mask.size());++ch) { 873 873 if (ch<edge.first || ch>=edge.second) res_mask[ch]=false; 874 874 else if (!mask[ch]) res_mask[ch]=false; 875 875 else { 876 876 res_mask[ch]=!invert; // no line by default 877 if (cli==lines.end()) continue; 878 if (ch>=cli->first && ch<cli->second) 879 res_mask[ch]=invert; // this is a line 880 if (ch>=cli->second) 881 ++cli; // next line in the list 882 } 883 877 if (cli!=lines.end()) 878 if (ch>=cli->first && ch<cli->second) 879 res_mask[ch]=invert; // this is a line 880 } 881 if (cli!=lines.end()) 882 if (ch>=cli->second) { 883 ++cli; // next line in the list 884 } 885 } 884 886 return res_mask; 885 887 }  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  