Skip to content

Commit

Permalink
warn if seg is passed
Browse files Browse the repository at this point in the history
  • Loading branch information
willgraf committed Jun 14, 2021
1 parent 0608d2f commit 22864c4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deepcell_toolbox/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 = []

Expand Down

0 comments on commit 22864c4

Please sign in to comment.