Package pylal :: Package dq :: Module dqFrameUtils :: Class ChannelList
[hide private]
[frames] | no frames]

Class ChannelList

source code

object --+    
         |    
      list --+
             |
            ChannelList

Wrapper for a list of Channel objects, with helper functions.

Instance Methods [hide private]
 
find(self, item)
Return the smallest i such that i is the index of an element that wholly contains item.
source code
 
sieve(self, ifo=None, name=None, type=None, sampling=None, sampling_range=None, not_name=None, exact_match=False)
Return a ChannelList object with those Channels that match the given attributes If exact_match is True, then non-None ifo, name, and type patterns must match exactly.
source code
 
__isub__(self, other)
Remove elements from self that are in other.
source code
 
__sub__(self, other)
Return a ChannelList containing the entries of self that are not in other.
source code
 
__ior__(self, other)
Append entries from other onto self without introducing (new) duplicates.
source code
 
__or__(self, other)
Return a ChannelList containing all entries of self and other.
source code
 
__iand__(self, other)
Remove elements in self that are not in other.
source code
 
__and__(self, other)
Return a ChannelList containing the entries of self that are also in other.
source code
 
unique(self)
Return a ChannelList which has every element of self, but without duplication of channel name.
source code

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __init__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

find(self, item)

source code 

Return the smallest i such that i is the index of an element that wholly contains item. Raises ValueError if no such element exists.

sieve(self, ifo=None, name=None, type=None, sampling=None, sampling_range=None, not_name=None, exact_match=False)

source code 

Return a ChannelList object with those Channels that match the given attributes If exact_match is True, then non-None ifo, name, and type patterns must match exactly.

If sampling is given, it will always test an exact match.

If sampling_range is given, it will test for Channels with sampling in [min,max) of range.

Bash-style wildcards (*?) are allowed for ifo, name and type.

unique(self)

source code 

Return a ChannelList which has every element of self, but without duplication of channel name. Preserve order. Does not hash, so a bit slow.