From 6271165e4e4fb8ebea55618b5819951dc660f1b1 Mon Sep 17 00:00:00 2001 From: belthlemar Date: Tue, 1 Oct 2024 11:06:30 +0200 Subject: [PATCH] fix test --- .../rawstudy/model/filesystem/matrix/date_serializer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/antarest/study/storage/rawstudy/model/filesystem/matrix/date_serializer.py b/antarest/study/storage/rawstudy/model/filesystem/matrix/date_serializer.py index 4f2c6213cc..2b8c431085 100644 --- a/antarest/study/storage/rawstudy/model/filesystem/matrix/date_serializer.py +++ b/antarest/study/storage/rawstudy/model/filesystem/matrix/date_serializer.py @@ -110,7 +110,7 @@ def extract_date(self, df: pd.DataFrame) -> Tuple[pd.Index[str], pd.DataFrame]: to_remove = cast(Sequence[Hashable], df.columns[0:5]) body = df.drop(to_remove, axis=1) - return cast(pd.Index[str], pd.Index(date)), body + return pd.Index(date), body # type: ignore class DailyMatrixSerializer(IDateMatrixSerializer): @@ -148,7 +148,7 @@ def extract_date(self, df: pd.DataFrame) -> Tuple[pd.Index[str], pd.DataFrame]: to_remove = cast(Sequence[Hashable], df.columns[0:4]) body = df.drop(to_remove, axis=1) - return cast(pd.Index[str], pd.Index(date)), body + return pd.Index(date), body # type: ignore class WeeklyMatrixSerializer(IDateMatrixSerializer):