Skip to content

Commit

Permalink
{pyactr} Generalize pyactr_print's get_buffer() (#377)
Browse files Browse the repository at this point in the history
Fixes #376
  • Loading branch information
asmaloney authored Aug 13, 2023
1 parent 11e3855 commit f130a35
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions framework/pyactr/pyactr_print.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ def get_buffer(self, buffer_name: str) -> Buffer:
"""
Gets a buffer from a name and returns it.
"""
if buffer_name == 'goal':
return self._ACTRModel__buffers['goal']
if buffer_name == 'retrieval':
return self._ACTRModel__buffers['retrieval']
if buffer_name in self._ACTRModel__buffers:
return self._ACTRModel__buffers[buffer_name]

print('ERROR: Buffer \'' + buffer_name + '\' not found')
raise KeyError
Expand Down

0 comments on commit f130a35

Please sign in to comment.