Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removes unused init time parameter and also updates the typing on the…
… default inverse mapping function to always return an integer
  • Loading branch information
apasarkar committed Aug 5, 2026
commit cf1c3802490ab3d761d4beef8938c10ad42ccc67
4 changes: 2 additions & 2 deletions fastplotlib/graphics/selectors/_selection_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def array_map(arr: np.ndarray, index: Integral):
return None if np.isnan(arr[index]) else int(arr[index])

def inv_array_map(arr: np.ndarray,
value: int) -> None | Integral:
value: int) -> None | int:
"""
arr[i] gives the global index
"""
Expand All @@ -43,7 +43,7 @@ class SelectionVector:

The SelectionVector coordinates across individual selectors, including the coordinated updating of indices whenever a selection changes
"""
def __init__(self, max_size: int = None):
def __init__(self):
# selector -> (map, map_inv)

## Key is a selector, value is a (1) local to global index map (2) global to local index map (3) list of event handlers
Expand Down