Commit d0de7637 authored by Osvaldo Martin's avatar Osvaldo Martin Committed by GitHub

fix problem with older version of packaging (#3975)

parent 801f6d2e
......@@ -433,7 +433,7 @@ def sample(
if return_inferencedata is None:
v = packaging.version.parse(pm.__version__)
if v.major > 3 or v.minor >= 10:
if v.release[0] > 3 or v.release[1] >= 10:
warnings.warn(
"In an upcoming release, pm.sample will return an `arviz.InferenceData` object instead of a `MultiTrace` by default. "
"You can pass return_inferencedata=True or return_inferencedata=False to be safe and silence this warning.",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment