From f0ffcd4ca336f462966871834add985d09c17683 Mon Sep 17 00:00:00 2001 From: Michael Mulich Date: Fri, 11 Dec 2020 17:30:31 -0800 Subject: [PATCH] Fix tests associated with removal of primary species I believe these tests were failing because of our removal of the primary species logic in 2455fa. --- wbia/algo/graph/mixin_wbia.py | 6 +++--- wbia/other/ibsfuncs.py | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wbia/algo/graph/mixin_wbia.py b/wbia/algo/graph/mixin_wbia.py index 5c3abf5b86..b6d7b49423 100644 --- a/wbia/algo/graph/mixin_wbia.py +++ b/wbia/algo/graph/mixin_wbia.py @@ -437,9 +437,9 @@ def get_wbia_name_delta(infr, ignore_unknown=True, relabel=True): >>> print(result) old_name new_name aid - 1 06_410 IBEIS_PZ_0042 - 5 07_061 06_410 - 6 07_061 06_410 + 1 06_410 IBEIS_UNKNOWN_0042 + 5 07_061 06_410 + 6 07_061 06_410 Doctest: >>> from wbia.algo.graph.mixin_wbia import * # NOQA diff --git a/wbia/other/ibsfuncs.py b/wbia/other/ibsfuncs.py index 04e6f49320..e411acb0d3 100644 --- a/wbia/other/ibsfuncs.py +++ b/wbia/other/ibsfuncs.py @@ -3066,10 +3066,10 @@ def make_next_name(ibs, num=None, str_format=2, species_text=None, location_text >>> result = ut.repr4(names) >>> print(result) ( - ['IBEIS_UNKNOWN_0008', 'IBEIS_PZ_0042', 'IBEIS_UNKNOWN_0004', 'IBEIS_GZ_0008'], - ['IBEIS_PZ_0042', 'IBEIS_PZ_0043', 'IBEIS_PZ_0044', 'IBEIS_PZ_0045', 'IBEIS_PZ_0046'], - ['IBEIS_PZ_0044', 'IBEIS_PZ_0045', 'IBEIS_PZ_0046', 'IBEIS_PZ_0047', 'IBEIS_PZ_0048'], - ['IBEIS_PZ_0042', 'IBEIS_PZ_0043', 'IBEIS_PZ_0044', 'IBEIS_PZ_0045', 'IBEIS_PZ_0046'], + ['IBEIS_UNKNOWN_0008', 'IBEIS_UNKNOWN_0042', 'IBEIS_UNKNOWN_0004', 'IBEIS_GZ_0008'], + ['IBEIS_UNKNOWN_0042', 'IBEIS_UNKNOWN_0043', 'IBEIS_UNKNOWN_0044', 'IBEIS_UNKNOWN_0045', 'IBEIS_UNKNOWN_0046'], + ['IBEIS_UNKNOWN_0044', 'IBEIS_UNKNOWN_0045', 'IBEIS_UNKNOWN_0046', 'IBEIS_UNKNOWN_0047', 'IBEIS_UNKNOWN_0048'], + ['IBEIS_UNKNOWN_0042', 'IBEIS_UNKNOWN_0043', 'IBEIS_UNKNOWN_0044', 'IBEIS_UNKNOWN_0045', 'IBEIS_UNKNOWN_0046'], ) """