Move import inside method to avoid module-level import error
Browse files- adapter.py +2 -2
adapter.py
CHANGED
|
@@ -7,8 +7,7 @@ current_dir = os.path.dirname(os.path.abspath(__file__))
|
|
| 7 |
if current_dir not in sys.path:
|
| 8 |
sys.path.insert(0, current_dir)
|
| 9 |
|
| 10 |
-
# Import
|
| 11 |
-
from extra_utils import get_sequences_from_anarci
|
| 12 |
|
| 13 |
# List of utility files that need to be available
|
| 14 |
UTILITY_FILES = [
|
|
@@ -639,6 +638,7 @@ class HFAbRestore(AbRestore):
|
|
| 639 |
|
| 640 |
max_position = 128 if chain == 'H' else 127
|
| 641 |
|
|
|
|
| 642 |
seqs = anarci_data.apply(
|
| 643 |
lambda x: get_sequences_from_anarci(
|
| 644 |
x.anarci,
|
|
|
|
| 7 |
if current_dir not in sys.path:
|
| 8 |
sys.path.insert(0, current_dir)
|
| 9 |
|
| 10 |
+
# Import will be done inside methods when needed
|
|
|
|
| 11 |
|
| 12 |
# List of utility files that need to be available
|
| 13 |
UTILITY_FILES = [
|
|
|
|
| 638 |
|
| 639 |
max_position = 128 if chain == 'H' else 127
|
| 640 |
|
| 641 |
+
from extra_utils import get_sequences_from_anarci
|
| 642 |
seqs = anarci_data.apply(
|
| 643 |
lambda x: get_sequences_from_anarci(
|
| 644 |
x.anarci,
|