Example #1
0
    def transformed(self, y, x):
        if np.any(np.isnan(y)):
            y, _ = nan_extend_edges_and_interpolate(x, y)

        if self.sub == 0:
            newd = y - edge_baseline(x, y)
        else:
            newd = edge_baseline(x, y)
        return newd
Example #2
0
    def transformed(self, y, x):
        if np.any(np.isnan(y)):
            y, _ = nan_extend_edges_and_interpolate(x, y)

        if self.sub == 0:
            newd = y - edge_baseline(x, y)
        else:
            newd = edge_baseline(x, y)
        return newd
 def transformed(self, y, x):
     if self.zero_points:
         baseline = linear_baseline(x, y, self.zero_points)
     else:
         baseline = edge_baseline(x, y)
     return y - baseline if self.sub == 0 else baseline
Example #4
0
 def compute_baseline(self, x, y):
     if np.any(np.isnan(y)):
         y, _ = nan_extend_edges_and_interpolate(x, y)
     return edge_baseline(x, y)
Example #5
0
 def compute_baseline(self, x, y):
     return edge_baseline(x, y)
Example #6
0
 def compute_baseline(self, x, y):
     if np.any(np.isnan(y)):
         y, _ = nan_extend_edges_and_interpolate(x, y)
     return edge_baseline(x, y)
Example #7
0
 def compute_baseline(self, x, y):
     return edge_baseline(x, y)