Skip to content

Commit 8bf0162

Browse files
authored
remove import of scipy.misc, which is deprecated (#564)
1 parent 1016b94 commit 8bf0162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Plugin/src/SofaPython3/PythonEnvironment.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ void PythonEnvironment::Init()
206206

207207
// Workaround: try to import scipy from the main thread this prevents a deadlock when importing
208208
// scipy from a worker thread when we use the SofaScene asynchronous loading
209-
executePython([]{ PyRun_SimpleString("try:\n\tfrom scipy import misc, optimize\nexcept:\n\tpass\n");});
209+
executePython([]{ PyRun_SimpleString("try:\n\tfrom scipy import optimize\nexcept:\n\tpass\n");});
210210

211211
// If the script directory is not available (e.g. if the interpreter is invoked interactively
212212
// or if the script is read from standard input), path[0] is the empty string,

0 commit comments

Comments
 (0)