Skip to content

Commit 96609df

Browse files
committed
linter issues
Signed-off-by: 1andrin <115493865+1andrin@users.noreply.github.com>
1 parent 61c2dc9 commit 96609df

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

notebooks/RunExperiments/experiment_runner.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import os
22
import sys
3-
4-
# Ensure CausalTune is in the Python path
5-
root_path = os.path.realpath("../../../..")
6-
sys.path.append(os.path.join(root_path, "causaltune"))
7-
83
import pickle
94
import numpy as np
105
import matplotlib
@@ -17,11 +12,14 @@
1712

1813
warnings.filterwarnings("ignore")
1914

20-
from causaltune import CausalTune
21-
from causaltune.datasets import (
22-
load_dataset,
23-
)
24-
from causaltune.models.passthrough import passthrough_model
15+
# Ensure CausalTune is in the Python path
16+
root_path = os.path.realpath("../../../..")
17+
sys.path.append(os.path.join(root_path, "causaltune")) # noqa: E402
18+
19+
# Import CausalTune and other custom modules after setting up the path
20+
from causaltune import CausalTune # noqa: E402
21+
from causaltune.datasets import load_dataset # noqa: E402
22+
from causaltune.models.passthrough import passthrough_model # noqa: E402
2523

2624

2725
def parse_arguments():

0 commit comments

Comments
 (0)