Ignore:
Timestamp:
08/20/10 18:03:31 (14 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: read MS in reference table

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

Bug fix on is_scantable() and similar routine in the codes.
They are now able to recognize reference table correctly.

splitant() is working with reference table. Thus, performance
is a bit improved since deep copy is no longer necessary.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/external-alma/atnf/PKSIO/PKSreader.cc

    r1868 r1883  
    102102
    103103  } else if (inFile.isDirectory()) {
    104     if (File(name + "/DATA_DESCRIPTION").exists()) {
     104    Bool isMS = ( (File(name+"/table.info").exists())
     105                  && File(name+"/table.dat").exists() );
     106    if (isMS) {
     107      RegularFileIO ifs(name+"/table.info") ;
     108      char buf[128] ;
     109      ifs.read(sizeof(buf),buf,False) ;
     110      if ( strstr( buf, "Measurement Set" ) == NULL )
     111        isMS = False ;
     112    }
     113    //if (File(name + "/DATA_DESCRIPTION").exists()) {
     114    if (isMS) {
    105115      // MS version 2.
    106116      #ifdef NOPKSMS
Note: See TracChangeset for help on using the changeset viewer.