X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=erange.git;a=blobdiff_plain;f=Peak.py;fp=Peak.py;h=ae41a0ff808a353bed7081b1b9c6c2464f44cd92;hp=0000000000000000000000000000000000000000;hb=0d3e3112fd04c2e6b44a25cacef1d591658ad181;hpb=5e4ae21098dba3d1edcf11e7279da0d84c3422e4 diff --git a/Peak.py b/Peak.py new file mode 100644 index 0000000..ae41a0f --- /dev/null +++ b/Peak.py @@ -0,0 +1,33 @@ +class Peak(object): + """ + Class describing a peak. + """ + + def __init__(self, topPos, numHits, smoothArray, numPlus, numLeftPlus=0, shift=0): + self._topPos = topPos + self._numHits = numHits + self.smoothArray = smoothArray + self.numPlus = numPlus + self.numLeftPlus = numLeftPlus + self.shift = shift + + + @property + def topPos(self): + return self._topPos + + + @topPos.setter + def topPos(self, topPos): + self._topPos = topPos + + + @property + def numHits(self): + return self._numHits + + + @numHits.setter + def numHits(self, numHits): + self._numHits = numHits + \ No newline at end of file