From 22864c4fd923b05c0912b4192727d5046c88ccb8 Mon Sep 17 00:00:00 2001 From: William Graf <7930703+willgraf@users.noreply.github.com> Date: Mon, 14 Jun 2021 15:13:33 -0700 Subject: [PATCH] warn if seg is passed --- deepcell_toolbox/metrics.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/deepcell_toolbox/metrics.py b/deepcell_toolbox/metrics.py index 46dcd63..82cc0f7 100644 --- a/deepcell_toolbox/metrics.py +++ b/deepcell_toolbox/metrics.py @@ -914,7 +914,8 @@ def __init__(self, model_name, feature_key=[], json_notes='', force_event_links=False, - is_3d=False): + is_3d=False, + **kwargs): self.model_name = model_name self.outdir = outdir self.cutoff1 = cutoff1 @@ -927,8 +928,11 @@ def __init__(self, model_name, self.force_event_links = force_event_links self.is_3d = is_3d + if 'seg' in kwargs: + warnings.warn('seg is deprecated and will be removed ' + 'in a future release', DeprecationWarning) + # Initialize output list to collect stats - self.output = [] self.object_metrics = [] self.pixel_metrics = []