Skip to content

Commit

Permalink
Add comments to address @rhelmot's concerns.
Browse files Browse the repository at this point in the history
  • Loading branch information
ltfish committed Jan 14, 2025
1 parent a9ff324 commit 1239003
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cle/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ def memory(self) -> Clemory:
@property
def memory_ro_view(self) -> ClemoryReadOnlyView | None:
if self._memory is None:
# it is intentional to check if self._memory is configured when memory_ro_view is accessed.
# memory_ro_view is only set up after gen_ro_memview() is called.
raise ValueError("Cannot access memory_ro_view before loading is complete")
return self._memory_ro_view

Expand Down

0 comments on commit 1239003

Please sign in to comment.