Skip to content

Commit

Permalink
remove annotations and use relative import from core
Browse files Browse the repository at this point in the history
  • Loading branch information
xingularity committed Oct 15, 2024
1 parent 08ba71e commit e045174
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modmesh/timeseries_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import os
import numpy as np

from modmesh import SimpleArrayUint64, SimpleArrayFloat64
from .core import SimpleArrayUint64, SimpleArrayFloat64


__all__ = [
Expand 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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e045174

Please sign in to comment.