Changeset 1009


Ignore:
Timestamp:
04/11/06 12:19:37 (19 years ago)
Author:
mar637
Message:

fix to version number data type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r1000 r1009  
    101101  initFactories();
    102102  Table tab(name, Table::Update);
    103   uInt version;
    104   tab.keywordSet().get("VERSION", version);
     103  uInt version = tab.keywordSet().asuInt("VERSION");
    105104  if (version != version_) {
    106105    throw(AipsError("Unsupported version of ASAP file."));
    107106  }
    108   if ( type_ == Table::Memory )
     107  if ( type_ == Table::Memory ) {
    109108    table_ = tab.copyToMemoryTable(generateName());
    110   else
     109  } else {
    111110    table_ = tab;
     111  }
     112
    112113  attachSubtables();
    113114  originalTable_ = table_;
     
    177178  TableDesc td("", "1", TableDesc::Scratch);
    178179  td.comment() = "An ASAP Scantable";
    179   td.rwKeywordSet().define("VERSION", Int(version_));
     180  td.rwKeywordSet().define("VERSION", uInt(version_));
    180181
    181182  // n Cycles
Note: See TracChangeset for help on using the changeset viewer.