Skip to content

Commit f67ffab

Browse files
committed
Fixup type issue flagged by mypy
The pandera model enforces that this is a str, but mypy does not appear to understand that at this level
1 parent ceaead2 commit f67ffab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/nsidc/iceflow/itrf/converter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import calendar
44
import datetime as dt
5+
from typing import cast
56

67
import pandas as pd
78
import pandera as pa
@@ -91,6 +92,7 @@ def transform_itrf(
9192
transformed_chunks = []
9293
for source_itrf, chunk in data.groupby(by="ITRF"):
9394
# If the source ITRF is the same as the target for this chunk, skip transformation.
95+
source_itrf = cast(str, source_itrf)
9496
if source_itrf == target_itrf and target_epoch is None:
9597
transformed_chunks.append(chunk)
9698
continue

0 commit comments

Comments
 (0)