Skip to content

Commit 306bd43

Browse files
committed
convert k-vec cython import to relative
1 parent 7a1861e commit 306bd43

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

GSASII/k_vector_search.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,23 @@
2727
# acknowledged for their useful comments.
2828
# +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
2929
#
30-
import numpy as np
3130
import sys
32-
from scipy.optimize import linear_sum_assignment
31+
import time
3332
import math
33+
import numpy as np
34+
from scipy.optimize import linear_sum_assignment
3435
from . import GSASIIfiles as G2fil
36+
37+
gen_option_avail = True
3538
try:
3639
import seekpath
37-
from kvec_general import parallel_proc
38-
gen_option_avail = True
3940
except ModuleNotFoundError:
4041
G2fil.NeededPackage({'magnetic k-vector search':['seekpath']})
4142
gen_option_avail = False
42-
import time
43-
43+
try:
44+
from GSASII.kvec_general. import parallel_proc
45+
except ModuleNotFoundError:
46+
gen_option_avail = False
4447

4548
def unique_id_gen(string_list: list) -> list:
4649
"""Generate unique IDs for strings included in the string list and the same

0 commit comments

Comments
 (0)