From 27ed3e76f9221cfa42fe77c24d48958d841ec7af Mon Sep 17 00:00:00 2001 From: Alexander Druz Date: Tue, 24 Oct 2023 08:30:39 +0200 Subject: [PATCH] Add deprecation warning to descriptors module --- renumics/spotlight/dataset/descriptors/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/renumics/spotlight/dataset/descriptors/__init__.py b/renumics/spotlight/dataset/descriptors/__init__.py index bb5cf837..3f52372d 100644 --- a/renumics/spotlight/dataset/descriptors/__init__.py +++ b/renumics/spotlight/dataset/descriptors/__init__.py @@ -1,5 +1,6 @@ """make descriptor methods more available """ +import warnings from typing import Optional, Tuple import numpy as np @@ -11,6 +12,13 @@ from renumics.spotlight.dataset.exceptions import ColumnExistsError, InvalidDTypeError from .data_alignment import align_column_data +warnings.warn( + "`renumics.spotlight.dataset.descriptors` module is deprecated and will " + "be removed in future versions.", + DeprecationWarning, + stacklevel=2, +) + def pca( dataset: Dataset,