The number of days in the year according to given calendar.
(years, calendar)
| 238 | |
| 239 | |
| 240 | def _days_in_year(years, calendar): |
| 241 | """The number of days in the year according to given calendar.""" |
| 242 | if calendar == "360_day": |
| 243 | return full_like(years, 360) |
| 244 | return _is_leap_year(years, calendar).astype(int) + 365 |
| 245 | |
| 246 | |
| 247 | def _interpolate_day_of_year(times, target_calendar): |
no test coverage detected
searching dependent graphs…