Changeset 954


Ignore:
Timestamp:
03/30/06 17:27:42 (19 years ago)
Author:
mar637
Message:

Fixed Ticket #6 (selector.set_polarisations error)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/selector.py

    r952 r954  
    3737
    3838        """
    39         vec = _to_list(pols, str) and _to_list(pols, int)
     39        vec = _to_list(pols, str) or _to_list(pols, int)
    4040        if vec: # is an empty and/or valid vector
    4141            if len(vec) and isinstance(vec[-1],str):
    42                 self._setpolstrings(self, vec)
     42                self._setpolstrings(vec)
    4343                return
    4444            self._setpols(vec)
  • trunk/src/STSelector.cpp

    r939 r954  
    4444    this->stringselections_ = other.stringselections_;
    4545    this->taql_ = other.taql_;
     46    this->poltypes_ = other.poltypes_;
     47    this->order_ = other.order_;
    4648  }
    4749  return *this;
     
    7072{
    7173  setint("POLNO", pols);
     74  poltypes_ = std::vector<std::string>();
    7275}
    7376
Note: See TracChangeset for help on using the changeset viewer.