erange version 4.0a dev release
[erange.git] / Peak.py
diff --git a/Peak.py b/Peak.py
new file mode 100644 (file)
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