Skip to content

Commit

Permalink
Fix relative imports (#1)
Browse files Browse the repository at this point in the history
* fixed relative imports

* fixed relative imports

* removed debbug prints
  • Loading branch information
zRafaF authored Oct 15, 2024
1 parent db3d911 commit f016640
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions bibmon/_load_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import importlib.resources as pkg_resources
from typing import Literal

from ._bibmon_tools import create_df_with_dates
from . import _bibmon_tools as b_tools
from . import real_process_data, tennessee_eastman, three_w

###############################################################################
Expand Down Expand Up @@ -55,17 +55,17 @@ def load_tennessee_eastman(train_id=0, test_id=0):
for ii in range(52):
train_df[tags[ii]] = [float(s) for s in tmp2[0][ii].split(" ")]

train_df = create_df_with_dates(train_df, freq="3min")
train_df = b_tools.create_df_with_dates(train_df, freq="3min")

else:

train_df = create_df_with_dates(
train_df = b_tools.create_df_with_dates(
pd.read_csv(filepath, sep="\s+", names=tags), freq="3min"
)

with pkg_resources.path(tennessee_eastman, file_test) as filepath:

test_df = create_df_with_dates(
test_df = b_tools.create_df_with_dates(
pd.read_csv(filepath, sep="\s+", names=tags),
start="2020-02-01 00:00:00",
freq="3min",
Expand Down
4 changes: 2 additions & 2 deletions bibmon/three_w/tools.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import configparser
import pandas as pd
import bibmon._preprocess as preproc
import bibmon._bibmon_tools as b_tools
from .. import _preprocess as preproc
from .. import _bibmon_tools as b_tools
from typing import Literal, Tuple


Expand Down

0 comments on commit f016640

Please sign in to comment.