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

Develop #90

Merged
merged 2 commits into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion dpipe/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.4.0'
__version__ = '0.4.1'
2 changes: 1 addition & 1 deletion dpipe/im/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@


def get_area(start, stop):
return np.product(np.maximum(stop - start, 0))
return np.prod(np.maximum(stop - start, 0))

Check warning on line 86 in dpipe/im/metrics.py

View check run for this annotation

Codecov / codecov/patch

dpipe/im/metrics.py#L86

Added line #L86 was not covered by tests


def box_iou(a_start_stop, b_start_stop):
Expand Down
4 changes: 0 additions & 4 deletions dpipe/im/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ def wrapper(*args_, **kwargs_):
return decorator


def name_changed(func: Callable, old_name: str, date: str):
return np.deprecate(func, old_name=old_name, new_name=func.__name__)


def get_mask_volume(mask: np.ndarray, *spacing: AxesParams, location: bool = False) -> float:
"""
Calculates the ``mask`` volume given its spatial ``spacing``.
Expand Down
Loading