Skip to content

Commit 84b0cd3

Browse files
refactor matlab command
Co-authored-by: Bart Schilperoort <b.schilperoort@esciencecenter.nl>
1 parent e26de91 commit 84b0cd3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PyStemmusScope/stemmus_scope.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ def run(self) -> str:
166166
if self.sub_process=="Matlab":
167167
# set Matlab arguments
168168
path_to_config = f"'{self.cfg_file}'"
169-
command_line = f'matlab -r "STEMMUS_SCOPE_exe({path_to_config});exit;"'
170-
args = [command_line, "-nodisplay", "-nosplash", "-nodesktop"]
169+
eval_code= f"STEMMUS_SCOPE_exe({path_to_config});exit;"
170+
args = ["matlab", "-r", eval_code, "-nodisplay", "-nosplash", "-nodesktop"]
171171
result = _run_sub_process(args, self.model_src)
172172
if self.sub_process=="Octave":
173173
# set Octave arguments

0 commit comments

Comments
 (0)