Hi Siqi,
If the tags being searched remains the same, splitting the spy.pull() into two separate functions will not take much longer than if the signals were pulled in one signal.
In your case, you can specify grid = None to avoid the interpolation, rather than using the formula parameter. Your pull should look something like this
my_pull_1 = spy.pull(
my_search.query("Name not in ('MODE', 'SP')"),
start=start,
end=end
)
my_pull_2 = spy.pull(
my_search.query("Name in ('MODE', 'SP')"),
start=start,
end=end,
grid=None
)