From dcd04e21b66e679d011d7238cf2e6b91d3345f0d Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 9 Dec 2024 17:48:33 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=20=D0=B2=D1=8B=D0=B1=D0=BE=D1=80=20=D1=81?= =?UTF-8?q?=D0=BC=D0=B5=D1=89=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B8=D0=BD=D0=B4?= =?UTF-8?q?=D0=B5=D0=BA=D1=81=D0=B0=20=D0=BF=D1=80=D0=B8=20=D1=84=D0=BE?= =?UTF-8?q?=D1=80=D0=BC=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B8=20?= =?UTF-8?q?=D0=B2=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D1=8B=D1=85=20=D0=B3?= =?UTF-8?q?=D1=80=D0=B0=D0=BD=D0=B8=D1=86=20=D1=82=D0=BE=D1=87=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../passportFormer.cpython-310.pyc | Bin 4116 -> 4116 bytes src/controller/passportFormer.py | 4 +--- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/controller/__pycache__/passportFormer.cpython-310.pyc b/src/controller/__pycache__/passportFormer.cpython-310.pyc index 95d7b18fd9015588186f79e7290adfed9d8b4385..a259d12f100abfc9b4a395e8451282b4f5341df8 100644 GIT binary patch delta 60 zcmbQDFhzkkpO=@50SJs3!qa^=@~+@yWZJxqQ-qn(WAkaAb&TwcLQGtYEH5WF@bxnK PPUhq9V^o_wm%khUqO1<> delta 60 zcmbQDFhzkkpO=@50SG?*2uqLJ$h(4*k#+MnP7!8C&&{WK)-kd(2{Caovb>nwz}L&@ PH<^#Wk5PT{T>f$Z^-K`B diff --git a/src/controller/passportFormer.py b/src/controller/passportFormer.py index 8abb3ba..77d90ed 100644 --- a/src/controller/passportFormer.py +++ b/src/controller/passportFormer.py @@ -1,6 +1,5 @@ from utils.base.base import BasePointPassportFormer, BaseIdealDataBuilder import pandas as pd -from typing import Any @@ -51,7 +50,7 @@ class PassportFormer(BasePointPassportFormer): if time_is_valid: - idx_shift = True if events[self._stages[-1]][1][0] == 0 else False + idx_shift = True if events[self._stages[-1]][0][0] == 0 else False for i in range(point_quantity): operator_settings = { @@ -69,7 +68,6 @@ class PassportFormer(BasePointPassportFormer): print(f"Cache miss. Computed and cached.") idx = i+1 if idx_shift else i point_timeframe = [events[self._stages[0]][0][i], events[self._stages[-1]][1][idx]] - point_events = {key: [value[0][i], value[1][i]] for key, value in events.items()} points_pocket.append([point_timeframe, ideal_data, point_events])