From 5978ae299f3a1481e7322520fa45afb5f8cfaa75 Mon Sep 17 00:00:00 2001 From: Stephan Finkensieper Date: Fri, 5 Jul 2024 12:37:43 +0000 Subject: [PATCH] Restore keyword argument --- pygac/reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygac/reader.py b/pygac/reader.py index 357ae1a..28f634c 100644 --- a/pygac/reader.py +++ b/pygac/reader.py @@ -863,7 +863,7 @@ def correct_times_median(self, year, jday, msec): jday = np.where(np.logical_or(jday < 1, jday > 366), np.median(jday), jday) - if_wrong_jday = np.ediff1d(jday, jday.dtype.type(0)) + if_wrong_jday = np.ediff1d(jday, to_begin=jday.dtype.type(0)) jday = np.where(if_wrong_jday < 0, max(jday), jday) if_wrong_msec = np.where(msec < 1)