From 208cc4ab5747731847a479bf687c59e6c2732388 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Thu, 14 Oct 2021 20:21:12 -0700 Subject: [PATCH] simplify dpoints computation width is already set to fixed_width, we don't need to have a separate case --- src/ieee754/part/layout_experiment.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ieee754/part/layout_experiment.py b/src/ieee754/part/layout_experiment.py index 4fabaa5f..88f058cd 100644 --- a/src/ieee754/part/layout_experiment.py +++ b/src/ieee754/part/layout_experiment.py @@ -151,10 +151,7 @@ def layout(elwid, vec_el_counts, lane_shapes=None, fixed_width=None): # do not need the breakpoints at the very start or the very end dpoints.pop(0, None) - if fixed_width is not None: - dpoints.pop(fixed_width, None) - else: - dpoints.pop(width, None) + dpoints.pop(width, None) plist = list(dpoints.keys()) plist.sort() print("dpoints") -- 2.30.2