| Total Complexity | 1 |
| Total Lines | 10 |
| Duplicated Lines | 0 % |
| 1 | """ |
||
| 8 | class HasEarningsToday(CustomFilter): |
||
| 9 | """ |
||
| 10 | Filter indicating whether an asset has an earnings announcement on the |
||
| 11 | current day. |
||
| 12 | """ |
||
| 13 | inputs = [EarningsCalendar.next_announcement] |
||
| 14 | window_length = 1 |
||
| 15 | |||
| 16 | def compute(self, today, assets, out, next_announce_date): |
||
| 17 | out[:] = (today.value == next_announce_date) |
||
| 18 |