From 9785c0cb588ec616fc47166797698f17d0486f50 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Tue, 26 Jun 2018 22:57:42 -0500 Subject: [PATCH] Rename pytools.obj_array.is_field_equal -> is_equal --- pytools/obj_array.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pytools/obj_array.py b/pytools/obj_array.py index 0892a10..33e975f 100644 --- a/pytools/obj_array.py +++ b/pytools/obj_array.py @@ -59,13 +59,17 @@ def to_obj_array(ary): return result -def is_field_equal(a, b): +def is_equal(a, b): if is_obj_array(a): return is_obj_array(b) and (a.shape == b.shape) and (a == b).all() else: return not is_obj_array(b) and a == b +# moderately deprecated +is_field_equal = is_equal + + def make_obj_array(res_list): result = np.empty((len(res_list),), dtype=object) for i, v in enumerate(res_list): -- GitLab