blitzgsea icon indicating copy to clipboard operation
blitzgsea copied to clipboard

Wrong data type of returned `running_sum` when sum_hit_scores == 0

Open chienhsiang opened this issue 1 year ago • 0 comments

Hi Alex,

Should the returned running_sum be an array instead of zero in this line? https://github.com/MaayanLab/blitzgsea/blob/54ca73de4c89be3824562f2ef8998aa0f179fbf7/blitzgsea/init.py#L49

I ran into error when sum_hit_scores == 0. It turns out that this line assumes that runningsum is an array: https://github.com/MaayanLab/blitzgsea/blob/54ca73de4c89be3824562f2ef8998aa0f179fbf7/blitzgsea/init.py#L78

chienhsiang avatar Feb 01 '24 21:02 chienhsiang