Skip to content

Commit 0db6f1d

Browse files
committed
Test on include_ids instead of stage per Tom
1 parent 09710b0 commit 0db6f1d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

proseco/guide.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,10 @@ def drop_excess_bonus_stars(self, guides):
398398
n_faint += 1
399399
# If we have more than the allowed number of faint bonus stars
400400
# and the star is not force-included, mark it for removal.
401-
if (n_faint > self.dyn_bgd_n_faint) & (guides["stage"][idx] != 0):
401+
if (
402+
n_faint > self.dyn_bgd_n_faint
403+
and guides["id"][idx] not in self.include_ids
404+
):
402405
idxs_drop.append(idx)
403406
if idxs_drop:
404407
guides.remove_rows(idxs_drop)

0 commit comments

Comments
 (0)