Skip to content

Commit

Permalink
get path from buffer_database
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Sep 22, 2023
1 parent 9920239 commit 3060286
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion spynnaker/pyNN/models/recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def cache_data(self):
if variables:
segment_number = SpynnakerDataView.get_segment_counter()
self.__data_cache[segment_number] = \
NeoBufferDatabase.default_database_file()
SpynnakerDataView.get_buffer_database().get_path()

def __append_current_segment(self, block, variables, view_indexes, clear):
"""
Expand Down
1 change: 0 additions & 1 deletion spynnaker/pyNN/utilities/neo_buffer_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ def __init__(self, database_file=None, read_only=None):
This allows to override that (mainly for clear)
"""
if database_file is None:
database_file = self.default_database_file()
if read_only is None:
read_only = False
else:
Expand Down

0 comments on commit 3060286

Please sign in to comment.