File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 3333import numpy as np
3434from scipy .optimize import linear_sum_assignment
3535from . import GSASIIfiles as G2fil
36+ from . import GSASIIpath
37+ GSASIIpath .SetBinaryPath ()
3638
3739gen_option_avail = True
3840try :
4143 G2fil .NeededPackage ({'magnetic k-vector search' :['seekpath' ]})
4244 print ('k_vector_search: seekpath could not be imported' )
4345 gen_option_avail = False
46+
4447try :
45- from GSASII .kvec_general import parallel_proc
48+ if GSASIIpath .binaryPath :
49+ import kvec_general
50+ else :
51+ from . import kvec_general
52+ except ImportError :
53+ print ('binary load error: kvec_general not found' )
54+ gen_option_avail = False
4655except ModuleNotFoundError :
4756 print ('k_vector_search: kvec_general could not be imported' )
4857 gen_option_avail = False
@@ -629,7 +638,7 @@ def kOptFinder(self) -> list:
629638 points = np .array (np .meshgrid (a_array , b_array , c_array ))
630639 points = points .T .reshape (- 1 , 3 )
631640
632- results = parallel_proc (
641+ results = kvec_general . parallel_proc (
633642 points ,
634643 self .nucPeaks ,
635644 self .superPeaks ,
Original file line number Diff line number Diff line change @@ -6,3 +6,7 @@ copy /y "%MESON_BUILD_ROOT%\sources\k_vec_cython\"*.pyd %OUTDIR%\
66copy /y " %MESON_BUILD_ROOT% \sources\" LATTIC.exe %OUTDIR% \
77copy /y " %MESON_BUILD_ROOT% \sources\" convcell.exe %OUTDIR% \
88copy /y " %MESON_BUILD_ROOT% \sources\" GSAS*.txt %OUTDIR% \
9+ copy /y %CONDA_PREFIX% \Library\bin\libgfortran.dll %OUTDIR% \
10+ copy /y %CONDA_PREFIX% \Library\bin\libquadmath*.dll %OUTDIR% \
11+ copy /y %CONDA_PREFIX% \Library\bin\libgcc*.dll %OUTDIR% \
12+ REM copy /y %CONDA_PREFIX%\Library\bin\libwinthread*.dll %OUTDIR%\
Original file line number Diff line number Diff line change @@ -5,3 +5,7 @@ copy /y "%MESON_BUILD_ROOT%\sources\k_vec_cython\"*.pyd %OUTDIR%\
55copy /y " %MESON_BUILD_ROOT% \sources\" LATTIC.exe %OUTDIR% \
66copy /y " %MESON_BUILD_ROOT% \sources\" convcell.exe %OUTDIR% \
77copy /y " %MESON_BUILD_ROOT% \sources\" GSAS*.txt %OUTDIR% \
8+ copy /y %CONDA_PREFIX% \Library\bin\libgfortran.dll %OUTDIR% \
9+ copy /y %CONDA_PREFIX% \Library\bin\libquadmath*.dll %OUTDIR% \
10+ copy /y %CONDA_PREFIX% \Library\bin\libgcc*.dll %OUTDIR% \
11+ REM copy /y %CONDA_PREFIX%\Library\bin\libwinthread*.dll %OUTDIR%\
You can’t perform that action at this time.
0 commit comments