-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
│ /home/kkavanagh/git/managed-pots-env2/.venv-redhat-8/lib/python3.11/site-packages/dt_browser/custom_table.py:326 in on_resize │
│ │
│ 323 │ │ # Check maxmimal selection of new size ╭───────────────────────────────────────── locals ─────────────────────────────────────────╮ │
│ 324 │ │ if event.size.width == 0: │ event = Resize(size=Size(width=306, height=58), virtual_size=Size(width=304, height=57)) │ │
│ 325 │ │ │ return │ self = TableWithBookmarks(id='main_table') │ │
│ ❱ 326 │ │ self._ensure_cursor() ╰──────────────────────────────────────────────────────────────────────────────────────────╯ │
│ 327 │ │
│ 328 │ def _ensure_cursor(self, allow_refresh: bool = True): │
│ 329 │ │ self._render_header_and_table = None │
│ │
│ /home/kkavanagh/git/managed-pots-env2/.venv-redhat-8/lib/python3.11/site-packages/dt_browser/custom_table.py:343 in _ensure_cursor │
│ │
│ 340 │ │ │ self.app.log( ╭────────────────────── locals ───────────────────────╮ │
│ 341 │ │ │ │ f"Going to cell due to resize. coord={self.cursor_coordinate}, NewCol={ │ allow_refresh = True │ │
│ 342 │ │ │ ) │ cur_row = 5205731 │ │
│ ❱ 343 │ │ │ self.go_to_cell(Coordinate(row=min(cur_row, max_row), column=min(max_idx, se │ max_idx = 0 │ │
│ 344 │ │ elif allow_refresh: │ max_row = 3130437 │ │
│ 345 │ │ │ self.app.log(f"Regenerating on resize. MaxIdx={max_idx}, cursor={self.cursor │ self = TableWithBookmarks(id='main_table') │ │
│ 346 │ │ │ self.refresh(repaint=True) ╰─────────────────────────────────────────────────────╯ │
│ │
│ /home/kkavanagh/git/managed-pots-env2/.venv-redhat-8/lib/python3.11/site-packages/dt_browser/custom_table.py:308 in go_to_cell │
│ │
│ 305 │ │ │ # rengen if row not currently displayed ╭───────────────────── locals ──────────────────────╮ │
│ 306 │ │ │ self._render_header_and_table = None │ coordinate = Coordinate(row=3130437, column=0) │ │
│ 307 │ │ │ cur_visible = False │ │
│ ❱ 308 │ │ self.cursor_coordinate = coordinate │ self = TableWithBookmarks(id='main_table') │ │
│ 309 │ │ ╰───────────────────────────────────────────────────╯ │
│ 310 │ │ # If it was off-screen, scroll to it, else refresh just to update the coloring │
│ 311 │ │ if not cur_visible: │
│ │
│ /home/kkavanagh/git/managed-pots-env2/.venv-redhat-8/lib/python3.11/site-packages/dt_browser/custom_table.py:359 in watch_cursor_coordinate │
│ │
│ 356 │ │ ) ╭────────────────── locals ──────────────────╮ │
│ 357 │ │ self = TableWithBookmarks(id='main_table') │ │
│ 358 │ def watch_cursor_coordinate(self): ╰────────────────────────────────────────────╯ │
│ ❱ 359 │ │ self._post_cell_event(CustomTable.CellHighlighted) │
│ 360 │ │
│ 361 │ def on_key(self, event: events.Key) -> None: │
│ 362 │ │ x_offset, y_offset = self.scroll_offset │
│ │
│ /home/kkavanagh/git/managed-pots-env2/.venv-redhat-8/lib/python3.11/site-packages/dt_browser/custom_table.py:353 in _post_cell_event │
│ │
│ 350 │ │ self.post_message( ╭────────────────────────────────── locals ──────────────────────────────────╮ │
│ 351 │ │ │ event_type( │ col_name = 'Timestamp' │ │
│ 352 │ │ │ │ self, │ event_type = <class 'dt_browser.custom_table.CustomTable.CellHighlighted'> │ │
│ ❱ 353 │ │ │ │ self._dt[self.cursor_coordinate.row, col_name], │ self = TableWithBookmarks(id='main_table') │ │
│ 354 │ │ │ │ self.cursor_coordinate, ╰────────────────────────────────────────────────────────────────────────────╯ │
│ 355 │ │ │ ) │
│ 356 │ │ ) │
│ │
│ /home/kkavanagh/git/managed-pots-env2/.venv-redhat-8/lib/python3.11/site-packages/polars/dataframe/frame.py:1353 in __getitem__
Metadata
Metadata
Assignees
Labels
No labels