From 1bb0531cf79d236a0472c4cb79ab98d85745eec0 Mon Sep 17 00:00:00 2001 From: Jan-Lukas Wynen Date: Mon, 18 May 2026 13:45:14 +0200 Subject: [PATCH] Use is_binned property --- pyproject.toml | 2 +- requirements/base.in | 2 +- src/plopp/plotting/common.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 311f0ae8..fb78d892 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ requires-python = ">=3.11" dependencies = [ "lazy-loader>=0.4", "matplotlib>=3.8", - "scipp>=25.8.0", + "scipp>=25.11.0", ] dynamic = ["version"] diff --git a/requirements/base.in b/requirements/base.in index 60eb5d34..d724e0a4 100644 --- a/requirements/base.in +++ b/requirements/base.in @@ -7,4 +7,4 @@ scipp # The following was generated by 'tox -e deps', DO NOT EDIT MANUALLY! lazy-loader>=0.4 matplotlib>=3.8 -scipp>=25.8.0 +scipp>=25.11.0 diff --git a/src/plopp/plotting/common.py b/src/plopp/plotting/common.py index ebe254ec..df5f2c7f 100644 --- a/src/plopp/plotting/common.py +++ b/src/plopp/plotting/common.py @@ -123,7 +123,7 @@ def check_not_binned(da: sc.DataArray) -> None: da: The data array to be plotted. """ - if da.bins is not None: + if da.is_binned: params = ', '.join([f'{dim}=100' for dim in da.dims]) raise ValueError( "Cannot plot binned data, it must be histogrammed first, "