Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
16f91b6
1
Parent(s):
54c02c4
Add code citation
Browse files
test/test_static_libpython_warning.py
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
import warnings
|
4 |
import pysr
|
5 |
|
|
|
6 |
with warnings.catch_warnings(record=True) as warning_catcher:
|
7 |
warnings.simplefilter("always")
|
8 |
pysr.sr.init_julia()
|
|
|
3 |
import warnings
|
4 |
import pysr
|
5 |
|
6 |
+
# Taken from https://stackoverflow.com/a/14463362/2689923
|
7 |
with warnings.catch_warnings(record=True) as warning_catcher:
|
8 |
warnings.simplefilter("always")
|
9 |
pysr.sr.init_julia()
|