File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -129,18 +129,22 @@ jobs:
129129
130130 python_exe = sys.executable.replace('\\\\', '/')
131131
132- content = f'''pyenv(Version='{python_exe}', ExecutionMode='InProcess ')
132+ content = f'''pyenv(Version='{python_exe}', ExecutionMode='OutOfProcess ')
133133 % Verify Python environment
134134 pe = pyenv;
135135 disp(pe);
136- % Warm up numpy
136+ % Warm up numpy - must call function to force resolution
137137 py.importlib.import_module('numpy');
138138 dummy = py.numpy.array([1,2,3]);
139+ disp(class(dummy));
139140 clear dummy;
140141 disp('py.numpy.array: resolved');
141- % Warm up mhkit
142+ % Warm up mhkit submodules - force resolution by calling functions
142143 py.importlib.import_module('mhkit');
143- disp('mhkit: resolved');
144+ py.importlib.import_module('mhkit.wave.io.ndbc');
145+ py.importlib.import_module('mhkit.wave.io.swan');
146+ py.importlib.import_module('mhkit.river.resource');
147+ disp('mhkit submodules: imported');
144148 version
145149 pyenv
146150 addpath(genpath('mhkit'))
You can’t perform that action at this time.
0 commit comments