From e758b18e69ca4d1ade0f36e46e7440ca0cf14887 Mon Sep 17 00:00:00 2001 From: "Martin K. Scherer" Date: Wed, 6 Mar 2024 12:46:35 +0100 Subject: [PATCH] handle all old units --- weldx/tags/time/timedeltaindex.py | 1 - 1 file changed, 1 deletion(-) diff --git a/weldx/tags/time/timedeltaindex.py b/weldx/tags/time/timedeltaindex.py index 296da28ab..72b2467f6 100644 --- a/weldx/tags/time/timedeltaindex.py +++ b/weldx/tags/time/timedeltaindex.py @@ -13,7 +13,6 @@ def _handle_converted_pd_tdi_units(node: TaggedDict): """Convert changed units in Pandas.Datetimeindex to valid values.""" - # todo: would it be safer to use a regex here to avoid ambiguity with modern units? unit = node["freq"][-1] if unit in PANDAS_OLD_UNIT_SUFFIXES.keys(): node["freq"] = node["freq"][:-1] + PANDAS_OLD_UNIT_SUFFIXES[unit]