Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Dec 3, 2024
1 parent 0d97058 commit 7e18415
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class BufferDatabase(BaseDatabase):
@classmethod
def reset_db(cls, reset_number: int) -> "BufferDatabase":
"""
Retrieves a NeoBufferDatabase for this segment.
Retrieves a BufferDatabase for this segment.
"""
database_file = cls.reset_file(reset_number)
return BufferDatabase(database_file)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(self, provenance_data_path: Optional[str] = None):
@classmethod
def reset_db(cls, reset_number: int) -> "ProvenanceReader":
"""
Retrieves a NeoBufferDatabase for this segment.
Retrieves a ProvenanceReader for this segment.
"""
database_file = cls.reset_file(reset_number)
return ProvenanceReader(database_file)
Expand Down
3 changes: 3 additions & 0 deletions spinn_front_end_common/utilities/base_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ def __init__(self, database_file: Optional[str] = None, *,

@classmethod
def reset_file(cls, reset_number) -> str:
"""
Provides the database file uses during this reset
"""
return reset_cache[reset_number]

@classmethod
Expand Down

0 comments on commit 7e18415

Please sign in to comment.