Skip to content

Commit

Permalink
use the same signal sample resolution logic for range and cursor move…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
danielhrisca committed Nov 9, 2023
1 parent 3026cf5 commit 1ef5091
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/asammdf/gui/widgets/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2961,8 +2961,11 @@ def range_modified(self, region=None):
if item.type() == item.Channel:
signal, i = self.plot.signal_by_uuid(item.uuid)

start_v, kind, fmt = signal.value_at_timestamp(start)
stop_v, kind, fmt = signal.value_at_timestamp(stop)
index = self.plot.get_timestamp_index(start, signal.timestamps)
start_v, kind, fmt = signal.value_at_index(index)

index = self.plot.get_timestamp_index(stop, signal.timestamps)
stop_v, kind, fmt = signal.value_at_index(index)

if self.region_values_display_mode == "delta":
item.set_prefix("Δ = ")
Expand Down
2 changes: 1 addition & 1 deletion src/asammdf/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
""" asammdf version module """

__version__ = "7.3.19.dev3"
__version__ = "7.3.19.dev4"

0 comments on commit 1ef5091

Please sign in to comment.