From 4e199dffd34dc60baa41e359c5f75ae9178fed39 Mon Sep 17 00:00:00 2001 From: annahedstroem Date: Mon, 27 Nov 2023 11:51:17 +0100 Subject: [PATCH] warn message and pandas version --- pyproject.toml | 2 +- quantus/metrics/randomisation/mprt.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 66f08242..59bd13ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ classifiers = [ dependencies = [ "numpy>=1.19.5", "pandas<=1.3.3; python_version == '3.7'", - "pandas>=2.0.1; python_version > '3.7'", + "pandas>=1.5.3; python_version > '3.7'", "opencv-python>=4.5.5.62", "scikit-image>=0.19.3", "scikit-learn>=0.24.2", diff --git a/quantus/metrics/randomisation/mprt.py b/quantus/metrics/randomisation/mprt.py index aca49a71..cd686ea2 100644 --- a/quantus/metrics/randomisation/mprt.py +++ b/quantus/metrics/randomisation/mprt.py @@ -555,11 +555,10 @@ def evaluate_batch(self, *args, **kwargs): @final class ModelParameterRandomisation(MPRT): def __init__(self, *args, **kwargs): - warnings.warn( + print( "ModelParameterRandomisation metric has been renamed to MPRT and will " "be removed in future releases. Please call quantus.MPRT() instead.\n" "This change is effective from Quantus version 0.5.0. Note: MPRT is " "functionally identical to ModelParameterRandomisation and can be used in the same way.", - DeprecationWarning, ) super().__init__(*args, **kwargs)