From 80c203b9ed98bee03fd309a0e39ae6727d0af1eb Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Thu, 14 Oct 2021 20:20:43 -0700 Subject: [PATCH] dedup dpoints --- src/ieee754/part/layout_experiment.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ieee754/part/layout_experiment.py b/src/ieee754/part/layout_experiment.py index 24e9aa5b..4fabaa5f 100644 --- a/src/ieee754/part/layout_experiment.py +++ b/src/ieee754/part/layout_experiment.py @@ -145,6 +145,10 @@ def layout(elwid, vec_el_counts, lane_shapes=None, fixed_width=None): add_p("end ", start, start * part_wid + lane_shapes[i]) # end lane + # deduplicate dpoints lists + for k in dpoints.keys(): + dpoints[k] = list({i: None for i in dpoints[k]}.keys()) + # do not need the breakpoints at the very start or the very end dpoints.pop(0, None) if fixed_width is not None: -- 2.30.2