Skip to content

Commit

Permalink
Update to new Plum
Browse files Browse the repository at this point in the history
  • Loading branch information
wesselb committed Jan 20, 2024
1 parent 8f04edc commit 3f064bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions neuralprocesses/coding.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ def code(coder, xz, z, x, **kw_args):
"""
if any(
[
isinstance(coder, s.types[0])
and issubclass(s.types[0], object)
and not issubclass(object, s.types[0])
for s in code.methods
isinstance(coder, m.signature.types[0])
and issubclass(m.signature.types[0], object)
and not issubclass(object, m.signature.types[0])
for m in code.methods
]
):
raise RuntimeError(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies = [
"numpy>=1.16",
"backends>=1.4.31",
"backends-matrix>=1.2.10",
"plum-dispatch>=2.2.2",
"plum-dispatch>=2.3.0",
"stheno>=1.3.10",
"wbml>=0.3.18",
]
Expand Down

0 comments on commit 3f064bb

Please sign in to comment.