GENIE3.py:70: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if regulators is not 'all':
GENIE3.py:81: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if maxcount is not 'all' and not isinstance(maxcount,int):
GENIE3.py:218: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if regulators is not 'all':
GENIE3.py:229: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if tree_method is not 'RF' and tree_method is not 'ET':
GENIE3.py:229: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if tree_method is not 'RF' and tree_method is not 'ET':
GENIE3.py:232: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if K is not 'sqrt' and K is not 'all' and not isinstance(K,int):
GENIE3.py:232: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if K is not 'sqrt' and K is not 'all' and not isinstance(K,int):
This was using commit 8bc2299b7dd0b6b595696675385507403026862b from this repository. This blog post suggests that the SyntaxWarning was added in Python 3.8.
In Python 3.9.7
from GENIE3 import *
givesThis was using commit 8bc2299b7dd0b6b595696675385507403026862b from this repository. This blog post suggests that the SyntaxWarning was added in Python 3.8.