Skip to content

Commit 0a8d1d4

Browse files
michaelosthegetwiecki
authored andcommitted
Introduce ShapeWarning
1 parent 131c829 commit 0a8d1d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pymc3/exceptions.py

+7
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)