Skip to content

Commit

Permalink
remove baseline from average pulse
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlam committed Feb 23, 2020
1 parent b6f5a19 commit 448c686
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pypulse/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,11 +776,15 @@ def calculateAverageProfile(self):
else:
self.average_profile = self.average_profile[0, :]
self.calculateOffpulseWindow()
# Remove baseline. A bit organizationally strange
self.spavg.remove_baseline()
self.average_profile = self.spavg.data
return self.average_profile

def calculateOffpulseWindow(self):
"""
Automatically calculates the off-pulse window
for the average SP
"""
self.spavg = SP.SinglePulse(self.average_profile, windowsize=int(self.getNbin()//8))
self.opw = self.spavg.opw
Expand Down

0 comments on commit 448c686

Please sign in to comment.