Skip to content

Commit 1927320

Browse files
Adding an if block
1 parent a940f46 commit 1927320

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pymc/model.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,8 +587,9 @@ def __init__(
587587
self._coords = {}
588588
self._dim_lengths = {}
589589
self.add_coords(coords)
590-
for name, values in coords_mutable.items():
591-
self.add_coord(name, values, mutable=True)
590+
if coords_mutable is not None:
591+
for name, values in coords_mutable.items():
592+
self.add_coord(name, values, mutable=True)
592593

593594
from pymc.printing import str_for_model
594595

0 commit comments

Comments
 (0)