Skip to content

Commit 091108f

Browse files
Introduce ShapeWarning
1 parent 6272f28 commit 091108f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pymc3/exceptions.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"IncorrectArgumentsError",
1818
"TraceDirectoryError",
1919
"ImputationWarning",
20+
"ShapeWarning",
2021
"ShapeError",
2122
]
2223

@@ -41,6 +42,12 @@ class ImputationWarning(UserWarning):
4142
pass
4243

4344

45+
class ShapeWarning(UserWarning):
46+
""" Something that could lead to shape problems down the line. """
47+
48+
pass
49+
50+
4451
class ShapeError(Exception):
4552
"""Error that the shape of a variable is incorrect."""
4653

0 commit comments

Comments
 (0)