Skip to content

Commit

Permalink
enh: allow checkpointing only if spaces are given at instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Feb 6, 2020
1 parent d2f79d5 commit 3dfce2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions niworkflows/utils/spaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,8 @@ def __init__(self, spaces=None, checkpoint=False):
spaces = [spaces]
self.__iadd__(spaces)

if checkpoint is True:
self.checkpoint()
if checkpoint is True:
self.checkpoint()

def __iadd__(self, b):
"""Append a list of transforms to the internal list."""
Expand Down

0 comments on commit 3dfce2a

Please sign in to comment.