From 3898e461307e1c47b5faba7b14674a7988293d5d Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Mon, 18 Apr 2022 20:54:28 -0500 Subject: [PATCH] Don't subtract microsecond from mint (#506) --- torchgeo/datasets/utils.py | 1 - 1 file changed, 1 deletion(-) diff --git a/torchgeo/datasets/utils.py b/torchgeo/datasets/utils.py index 7ed620ab386..3981202d24a 100644 --- a/torchgeo/datasets/utils.py +++ b/torchgeo/datasets/utils.py @@ -447,7 +447,6 @@ def disambiguate_timestamp(date_str: str, format: str) -> Tuple[float, float]: # Microsecond resolution maxt = mint + timedelta(microseconds=1) - mint -= timedelta(microseconds=1) maxt -= timedelta(microseconds=1) return mint.timestamp(), maxt.timestamp()