Skip to content

Commit

Permalink
aiml: rename loadBrain to restoreBrain
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Mar 13, 2013
1 parent abd08f7 commit 9ec3c26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aiml/Kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def bootstrap(self, brainFile = None, learnFiles = [], commands = []):
"""
start = time.clock()
if brainFile:
self.loadBrain(brainFile)
self.restoreBrain(brainFile)

# learnFiles might be a string, in which case it should be
# turned into a single-element list.
Expand Down Expand Up @@ -149,7 +149,7 @@ def resetBrain(self):
del(self._brain)
self.__init__()

def loadBrain(self, filename):
def restoreBrain(self, filename):
"""Attempt to load a previously-saved 'brain' from the
specified filename.
Expand Down
2 changes: 1 addition & 1 deletion example3/continue.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
k = aiml.Kernel(sessionStore=db)

# load from a saved brain
k.loadBrain("brain.sav")
k.restoreBrain("brain.sav")

# Loop forever, reading user input from the command
# line and printing responses.
Expand Down

0 comments on commit 9ec3c26

Please sign in to comment.