Skip to content

Commit

Permalink
handle all old units
Browse files Browse the repository at this point in the history
  • Loading branch information
marscher committed Mar 6, 2024
1 parent 18626b0 commit e758b18
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion weldx/tags/time/timedeltaindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit e758b18

Please sign in to comment.