Permalink
Browse files

Close input source after swarm. (#3847)

  • Loading branch information...
rhyolight committed Jun 18, 2018
1 parent 48ba1e1 commit 50c5fd0dc94f2ffb205544ed11fe82ad5bb0de18
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/nupic/swarming/ModelRunner.py
@@ -420,6 +420,11 @@ def _finalize(self):
if self._predictionLogger:
self._predictionLogger.close()
# =========================================================================
# Close input stream, if necessary
# =========================================================================
if self._inputSource:
self._inputSource.close()
def __createModelCheckpoint(self):
""" Create a checkpoint from the current model, and store it in a dir named

0 comments on commit 50c5fd0

Please sign in to comment.