From 5f5b109505a71097561214c587d05bf70d2c5552 Mon Sep 17 00:00:00 2001 From: Jayaram Kancherla Date: Sat, 3 Jan 2026 08:17:30 -0800 Subject: [PATCH 1/2] rename files --- setup.cfg | 2 +- src/biocframe/{frame.py => BiocFrame.py} | 0 src/biocframe/__init__.py | 2 +- src/biocframe/io/from_pandas.py | 2 +- tests/test_methods.py | 2 +- tests/test_pandas.py | 2 +- tests/test_readme.py | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) rename src/biocframe/{frame.py => BiocFrame.py} (100%) diff --git a/setup.cfg b/setup.cfg index db247c7..600c3e7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -49,7 +49,7 @@ python_requires = >=3.9 # For more information, check out https://semver.org/. install_requires = importlib-metadata; python_version<"3.8" - biocutils>=0.3.1 + biocutils>=0.3.3 numpy [options.packages.find] diff --git a/src/biocframe/frame.py b/src/biocframe/BiocFrame.py similarity index 100% rename from src/biocframe/frame.py rename to src/biocframe/BiocFrame.py diff --git a/src/biocframe/__init__.py b/src/biocframe/__init__.py index ac15730..6086c6a 100644 --- a/src/biocframe/__init__.py +++ b/src/biocframe/__init__.py @@ -15,5 +15,5 @@ finally: del version, PackageNotFoundError -from .frame import BiocFrame, relaxed_combine_rows, merge, relaxed_combine_columns +from .BiocFrame import BiocFrame, relaxed_combine_rows, merge, relaxed_combine_columns from .io import from_pandas diff --git a/src/biocframe/io/from_pandas.py b/src/biocframe/io/from_pandas.py index 71f2d62..c28b031 100644 --- a/src/biocframe/io/from_pandas.py +++ b/src/biocframe/io/from_pandas.py @@ -5,7 +5,7 @@ if TYPE_CHECKING: import pandas -from ..frame import BiocFrame +from ..BiocFrame import BiocFrame __author__ = "jkanche" __copyright__ = "jkanche" diff --git a/tests/test_methods.py b/tests/test_methods.py index 93bbeea..bbddd96 100644 --- a/tests/test_methods.py +++ b/tests/test_methods.py @@ -1,7 +1,7 @@ import numpy as np import pytest import pandas as pd -from biocframe.frame import BiocFrame +from biocframe.BiocFrame import BiocFrame from biocutils import Factor, Names import biocutils as ut diff --git a/tests/test_pandas.py b/tests/test_pandas.py index c49750d..32cf8f8 100644 --- a/tests/test_pandas.py +++ b/tests/test_pandas.py @@ -1,7 +1,7 @@ import numpy as np import pytest import pandas as pd -from biocframe.frame import BiocFrame +from biocframe.BiocFrame import BiocFrame from biocutils import Factor __author__ = "jkanche" diff --git a/tests/test_readme.py b/tests/test_readme.py index a8356d0..067db10 100644 --- a/tests/test_readme.py +++ b/tests/test_readme.py @@ -1,6 +1,6 @@ from random import random -from biocframe.frame import BiocFrame +from biocframe.BiocFrame import BiocFrame __author__ = "jkanche" __copyright__ = "jkanche" From 60404edb3449a576abfc87af7c44006bc242228c Mon Sep 17 00:00:00 2001 From: Jayaram Kancherla Date: Sat, 3 Jan 2026 08:20:28 -0800 Subject: [PATCH 2/2] remove deprcation warning --- CHANGELOG.md | 2 +- src/biocframe/BiocFrame.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0985caa..5cf135e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## Version 0.7.0 - 0.7.1 +## Version 0.7.0 - 0.7.2 - Major update to type hints throughout the module for better type safety and consistency. - Fixed bug in slice operations where column indices might be incorrectly initialized. diff --git a/src/biocframe/BiocFrame.py b/src/biocframe/BiocFrame.py index 8b83d91..6770a0c 100644 --- a/src/biocframe/BiocFrame.py +++ b/src/biocframe/BiocFrame.py @@ -713,10 +713,6 @@ def get_column(self, column: Union[str, int]) -> Any: def column(self, column: Union[str, int]) -> Any: """Alias for :py:meth:`~get_column`, provided for back-compatibility only.""" - warn( - "Method 'column' is deprecated, use 'get_column' instead", - DeprecationWarning, - ) return self.get_column(column) def has_row(self, name: str) -> bool: