Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deprecation warning to descriptors module #303

Merged
merged 1 commit into from
Oct 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions renumics/spotlight/dataset/descriptors/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""make descriptor methods more available
"""
import warnings
from typing import Optional, Tuple

import numpy as np
Expand All @@ -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,
Expand Down