Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion pymc/backends/arviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,6 @@ def observed_data_to_xarray(self):
default_dims=[],
)

@requires(["trace", "predictions"])
@requires("model")
def constant_data_to_xarray(self):
"""Convert constant data to xarray."""
Expand Down
3 changes: 2 additions & 1 deletion pymc/tests/test_idata_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ def test_no_trace(self):

@pytest.mark.parametrize("use_context", [True, False])
def test_priors_separation(self, use_context):
"""Test model is enough to get prior, prior predictive and observed_data."""
"""Test model is enough to get prior, prior predictive, constant_data and observed_data."""
with pm.Model() as model:
x = pm.MutableData("x", [1.0, 2.0, 3.0])
y = pm.ConstantData("y", [1.0, 2.0, 3.0])
Expand All @@ -514,6 +514,7 @@ def test_priors_separation(self, use_context):
"prior": ["beta", "~obs"],
"observed_data": ["obs"],
"prior_predictive": ["obs"],
"constant_data": ["x", "y"],
}
if use_context:
with model:
Expand Down