From 17ece0b46d65b19274b039e45ccc790bb6c04c59 Mon Sep 17 00:00:00 2001 From: JoFrhwld Date: Sun, 7 Apr 2024 14:46:21 -0400 Subject: [PATCH] polars update --- pyproject.toml | 2 +- src/fasttrackpy/processors/outputs.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index fbca3dc..9b3689d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,7 @@ python = ">=3.10,<3.12" praat-parselmouth = "^0.4.3" scipy = {version = "^1.11.3", python = ">=3.10,<3.12"} numpy = {version = "^1.26.1", python = ">=3.10,<3.12"} -polars = "^0.19.16" +polars = "^0.20.18" pytest-cov = "^4.1.0" pytest = "^7.4.3" python-magic = {version = "^0.4.27", markers = "sys_platform != 'win32'"} diff --git a/src/fasttrackpy/processors/outputs.py b/src/fasttrackpy/processors/outputs.py index 6c6b5b8..0270256 100644 --- a/src/fasttrackpy/processors/outputs.py +++ b/src/fasttrackpy/processors/outputs.py @@ -247,7 +247,7 @@ def spectrogram( .melt(id_vars = "time")\ .with_columns( pl.col("variable")\ - .replace(mapping=ptolmap)\ + .replace(ptolmap)\ .alias("color") ) @@ -348,7 +348,7 @@ def candidate_spectrograms( .melt(id_vars = "time")\ .with_columns( pl.col("variable")\ - .replace(mapping=ptolmap)\ + .replace(ptolmap)\ .alias("color") )