MilesCranmer commited on
Commit
d325c42
·
unverified ·
1 Parent(s): 4037c2d

Fix environ assertion

Browse files
Files changed (1) hide show
  1. 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["PYTHON_JULIACALL_HANDLE_SIGNALS"] not in {"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."
 
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."