Skip to content

Commit 1359d30

Browse files
committed
fix(tensorstore): Only log missing times when they are missing
1 parent 97910bc commit 1359d30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/nwp_consumer/internal/entities/tensorstore.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,8 @@ def missing_times(self) -> ResultE[list[dt.datetime]]:
545545
if d != "init_time"
546546
}).isnull().all().values:
547547
missing_times.append(pd.Timestamp(it).to_pydatetime().replace(tzinfo=dt.UTC))
548-
log.debug(f"NaNs in init times '{missing_times}' suggest they are missing, will redownload")
548+
if len(missing_times) > 0:
549+
log.debug(f"NaNs in init times '{missing_times}' suggest they are missing, will redownload")
549550
return Success(missing_times)
550551

551552
@staticmethod

0 commit comments

Comments
 (0)