We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ab4186 commit a923581Copy full SHA for a923581
pymc/data.py
@@ -31,7 +31,6 @@
31
from aesara.graph.basic import Apply
32
from aesara.tensor.type import TensorType
33
from aesara.tensor.var import TensorConstant, TensorVariable
34
-from packaging import version
35
36
import pymc as pm
37
@@ -635,8 +634,8 @@ def Data(
635
634
arr = pandas_to_array(value)
636
637
if mutable is None:
638
- current = version.Version(pm.__version__)
639
- mutable = current.major == 4 and current.minor < 1
+ major, minor = [int(v) for v in pm.__version__.split(".")[:2]]
+ mutable = major == 4 and minor < 1
640
if mutable:
641
warnings.warn(
642
"The `mutable` kwarg was not specified. Currently it defaults to `pm.Data(mutable=True)`,"
0 commit comments