From 4932336a291f6fb8e800ec6b8a496a4cefbe7e53 Mon Sep 17 00:00:00 2001 From: abalijepalli Date: Tue, 30 May 2017 16:08:00 -0400 Subject: [PATCH] Fixed a bug in the default settings that prevented the analysis from starting in some instances. --- CHANGELOG.rst | 8 ++++++++ README.rst | 4 ++++ mosaic/partition/eventSegment.py | 20 ++++++++++---------- mosaic/partition/metaEventPartition.py | 2 +- mosaic/settings.py | 5 ++++- 5 files changed, 27 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ab12ea7c..7659f80c 100755 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,14 @@ Change Log ++++++++++++++++++++++++++++++++++++++++++ +**v1.3.4** + + - Fixed a bug in the default settings that prevented the analysis from starting in some instances. + +**v1.3.3** + + - Added support for Chimera data files. + - Resolves issues #92 and #95. **v1.3.2** diff --git a/README.rst b/README.rst index 1a0bb5b2..1f80f194 100755 --- a/README.rst +++ b/README.rst @@ -45,6 +45,10 @@ Report problems using our `issue tracker = self.meanOpenCurr: - skipflag = False + while (skipflag == True): #if we are in a clogged state or a very long event, skip data until we reach good baseline again + t=self.currData.popleft() + self.globalDataIndex+=1 + if abs(t) >= self.meanOpenCurr: + skipflag = False + t=self.currData.popleft() self.globalDataIndex+=1 @@ -180,8 +181,8 @@ def _eventsegment(self): self.eventdat.append(t) self.globalDataIndex+=1 if len(self.eventdat) > self.maxEventLength: - skipflag = True - break + skipflag = True + break # end of event. Reset the flag self.eventstart=False @@ -200,8 +201,7 @@ def _eventsegment(self): self.meanOpenCurr, self.sdOpenCurr ) - - #print self.trajDataObj.FsHz, self.windowOpenCurrentMean, self.sdOpenCurr, self.slopeOpenCurr + # print self.trajDataObj.FsHz, self.windowOpenCurrentMean, self.sdOpenCurr, self.slopeOpenCurr, len(self.eventdat) if len(self.eventdat)>=self.minEventLength and len(self.eventdat)