From e0451740a7b6916aabbcaa365707d878ed2c6ee2 Mon Sep 17 00:00:00 2001 From: "Zong-han, Xie" Date: Tue, 15 Oct 2024 22:16:10 +0800 Subject: [PATCH] remove annotations and use relative import from core --- modmesh/timeseries_dataframe.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modmesh/timeseries_dataframe.py b/modmesh/timeseries_dataframe.py index 911ddfdc..1057b9a1 100644 --- a/modmesh/timeseries_dataframe.py +++ b/modmesh/timeseries_dataframe.py @@ -28,7 +28,7 @@ import os import numpy as np -from modmesh import SimpleArrayUint64, SimpleArrayFloat64 +from .core import SimpleArrayUint64, SimpleArrayFloat64 __all__ = [ @@ -47,10 +47,10 @@ def __init__(self): def read_from_text_file( self, - txt_path: str, - delimiter: str=',', - timestamp_in_file: bool=True, - timestamp_column: str=None + txt_path, + delimiter=',', + timestamp_in_file=True, + timestamp_column=None ): """ Generate dataframe from a text file. @@ -91,7 +91,7 @@ def read_from_text_file( continue self._data.append(SimpleArrayFloat64(array=nd_arr[:, i])) - def get_column(self, column_name:str): + def get_column(self, column_name): if column_name not in self._columns: raise Exception("Column '{}' does not exist".format(column_name)) return self._data[self._columns.index(column_name)].ndarray