From 1a9bcce6bdbaffaea9a5c063f9f7f4a143f3b8b6 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 9 Jun 2025 10:35:47 -0400 Subject: [PATCH] Bump to latest `polars` in `0.20.xx` series Since I was trying out the neat lookin `polars-fuzzy-match` (also added for now as a core dep in this) which requires the new plugin sys, plus it's about time we synced with upstream i'd imagine! Adjust some column syntax to the new `.name` sub-field-space to match. Other, - add back `trio-typing` bc i guess something else needs it (debug tooling stuff in new `tractor`?) - flip back to the `tractor` pre-main pin since the new `main`-branch requires new `trio` stuff we haven't ported yet.. --- piker/tsp/_anal.py | 4 ++-- pyproject.toml | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/piker/tsp/_anal.py b/piker/tsp/_anal.py index ea78c46a..42c3aa6c 100644 --- a/piker/tsp/_anal.py +++ b/piker/tsp/_anal.py @@ -517,7 +517,7 @@ def with_dts( ''' return df.with_columns([ - pl.col(time_col).shift(1).suffix('_prev'), + pl.col(time_col).shift(1).name.suffix('_prev'), pl.col(time_col).diff().alias('s_diff'), pl.from_epoch(pl.col(time_col)).alias('dt'), ]).with_columns([ @@ -623,7 +623,7 @@ def detect_vlm_gaps( ) -> pl.DataFrame: - vnull: pl.DataFrame = w_dts.filter( + vnull: pl.DataFrame = df.filter( pl.col(col) == 0 ) return vnull diff --git a/pyproject.toml b/pyproject.toml index 7a6de4e7..14a0a6b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,7 +55,8 @@ dependencies = [ "ib-insync >=0.9.86, <0.10.0", "numba >=0.59.0, <0.60.0", "numpy >=1.25, <2.0", - "polars >=0.18.13, <0.19.0", + "polars >=0.20.6", + "polars-fuzzy-match>=0.1.5", "pygments >=2.16.1, <3.0.0", "rich >=13.5.2, <14.0.0", "tomli >=2.0.1, <3.0.0", @@ -75,6 +76,7 @@ dependencies = [ "tractor", "asyncvnc", "tomlkit", + "trio-typing>=0.10.0", ] [project.optional-dependencies] @@ -130,4 +132,4 @@ pyqtgraph = { git = "https://github.com/pikers/pyqtgraph.git" } asyncvnc = { git = "https://github.com/pikers/asyncvnc.git", branch = "main" } tomlkit = { git = "https://github.com/pikers/tomlkit.git", branch ="piker_pin" } msgspec = { git = "https://github.com/jcrist/msgspec.git" } -tractor = { path = "../tractor", editable = true } +tractor = { git = "https://pikers.dev/goodboy/tractor", branch = "aio_abandons" }