Skip to content

Commit

Permalink
invalidate fst cache after set-sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasKl committed Jun 20, 2024
1 parent b7972b7 commit 414accf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions wal/trace/fst.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def access_signal_data(self, name, index):

def set_sampling_points(self, new_indices):
super().set_sampling_points(new_indices)
self.access_signal_data.cache_clear()

def signal_width(self, name):
return self.references_to_ids[name].length
2 changes: 1 addition & 1 deletion wal/trace/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def signal_width(self, name):
raise NotImplementedError

@property
def ts(self): # pylint: disable=C0103
def ts(self):
'''Converts the index to the current timestamp.'''
return self.timestamps[self.index]

Expand Down

0 comments on commit 414accf

Please sign in to comment.