Spaces:
Running
Running
MilesCranmer
commited on
Fix environ assertion
Browse files- pysr/julia_helpers.py +1 -1
pysr/julia_helpers.py
CHANGED
@@ -3,7 +3,7 @@ import os
|
|
3 |
import warnings
|
4 |
|
5 |
# Required to avoid segfaults (https://juliapy.github.io/PythonCall.jl/dev/faq/)
|
6 |
-
if os.environ
|
7 |
warnings.warn(
|
8 |
"PYTHON_JULIACALL_HANDLE_SIGNALS environment variable is set to something other than 'yes' or ''. "
|
9 |
+ "You will experience segfaults if running with multithreading."
|
|
|
3 |
import warnings
|
4 |
|
5 |
# Required to avoid segfaults (https://juliapy.github.io/PythonCall.jl/dev/faq/)
|
6 |
+
if os.environ.get("PYTHON_JULIACALL_HANDLE_SIGNALS", "yes") != "yes":
|
7 |
warnings.warn(
|
8 |
"PYTHON_JULIACALL_HANDLE_SIGNALS environment variable is set to something other than 'yes' or ''. "
|
9 |
+ "You will experience segfaults if running with multithreading."
|