Skip to content

Commit 3f8b8ba

Browse files
committed
Fix relative imports
1 parent ce4c090 commit 3f8b8ba

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

pyext/src/evaluate_output_database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pandas as pd
22
import numpy as np
3-
import tools
3+
from . import tools
44
import sys
55
import IMP
66
import IMP.pmi

pyext/src/final_ML_predict.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
import sys
55
import os
66
import time
7-
# use a path to find scripts such as "data_v2.py" and "cnn.py"
8-
# sys.path.append("path to folder with data_v2.py and cnn.py")
9-
from data_v2_for_parts import (reshape_df, split_image_and_other_features,
10-
ResidueVoxelDataset)
7+
from .data_v2_for_parts import (reshape_df, split_image_and_other_features,
8+
ResidueVoxelDataset)
119

1210
# Non-voxel columns in the input dataframe
1311
other_columns = ["EMDB", "resolution", "pdbname", "chain", "resid",

0 commit comments

Comments
 (0)