realfastvla / rfpipe

Fast radio interferometric transient search pipeline

Home Page:https://realfastvla.github.io/rfpipe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

summing candcollections is slow

caseyjlaw opened this issue · comments

We can sum a list of ccs with sum(ccs) and get a single cc back.
However, each sum checks that it is appropriate to sum them. That requires calculating the segmenttimes and comparing them, which is slow.
Would be nice to make this faster while maintaining the test of appropriateness.

Fixed by being smarter about skipping empty ccs.